Return-Path: X-Original-To: distix@pieni.net Delivered-To: distix@pieni.net Received: from yaffle.pepperfish.net (yaffle.pepperfish.net [88.99.213.221]) by pieni.net (Postfix) with ESMTPS id 6685B41810 for ; Mon, 3 Jul 2017 05:33:21 +0000 (UTC) Received: from platypus.pepperfish.net (unknown [10.112.101.20]) by yaffle.pepperfish.net (Postfix) with ESMTP id 3DC3941C94; Mon, 3 Jul 2017 06:33:21 +0100 (BST) Received: from ip6-localhost.nat ([::1] helo=platypus.pepperfish.net) by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian)) id 1dRtz7-0008VO-7Y; Mon, 03 Jul 2017 06:33:21 +0100 Received: from [10.112.101.21] (helo=inmail2.pepperfish.net) by platypus.pepperfish.net with esmtps (Exim 4.80 #2 (Debian)) id 1dRtz5-0008VA-MI for ; Mon, 03 Jul 2017 06:33:19 +0100 Received: from koom.pieni.net ([88.99.190.206] helo=pieni.net) by inmail2.pepperfish.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1dRtz4-00043w-4k for obnam-dev@obnam.org; Mon, 03 Jul 2017 06:33:19 +0100 Received: from exolobe3.liw.fi (82-181-57-241.bb.dnainternet.fi [82.181.57.241]) by pieni.net (Postfix) with ESMTPSA id 7078F41810; Mon, 3 Jul 2017 05:33:12 +0000 (UTC) Received: from liw.fi (localhost [127.0.0.1]) by exolobe3.liw.fi (Postfix) with ESMTPS id C7E7E1200D0; Mon, 3 Jul 2017 08:33:11 +0300 (EEST) Date: Mon, 3 Jul 2017 08:33:10 +0300 From: Lars Wirzenius To: Michele Alessandrini Message-ID: <20170703053310.7y5qri5l6mduhuli@liw.fi> References: <0dc53aa0-b510-8607-ba63-f527f49bdf50@univpm.it> MIME-Version: 1.0 In-Reply-To: <0dc53aa0-b510-8607-ba63-f527f49bdf50@univpm.it> User-Agent: NeoMutt/20170113 (1.7.2) X-Pepperfish-Transaction: 9a01-3ce8-88a6-4cc5 X-Spam-Score: -3.4 X-Spam-Score-int: -33 X-Spam-Bar: --- X-Scanned-By: pepperfish.net, Mon, 03 Jul 2017 06:33:19 +0100 X-Spam-Report: Content analysis details: (-3.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.5 PPF_USER_AGENT User-Agent: exists -1.0 PPF_USER_AGENT_MUTT User-Agent: contains Mutt (Mutt isn't a spam tool) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-ACL-Warn: message may be spam X-Scan-Signature: dac7127c6b0e4a408c863dfea4046687 Cc: obnam-dev@obnam.org Subject: Re: "exclude-if-present" option X-BeenThere: obnam-dev@obnam.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Obnam development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============8028953905777979665==" Mime-version: 1.0 Sender: obnam-dev-bounces@obnam.org Errors-To: obnam-dev-bounces@obnam.org --===============8028953905777979665== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="25dz43n4rurbvt5b" Content-Disposition: inline --25dz43n4rurbvt5b Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I've not had time to try this yet, but from reading the patch it looks good. A few comments below. On Thu, Jun 29, 2017 at 12:08:29PM +0200, Michele Alessandrini wrote: > The "./check" suite mostly passes (I had to fight a little with pep8), but > it gives some errors at the end, I suspect they're not related to code, I > report the output at the end. Maybe I have not all the needed programs > installed? I followed the README, and by the way I use debian testing so I > conveniently found all your packages right in aptitude. I'll have a look and see if I can figure out what's wrong. The README may be out of date, but debian/control should be up to date. > About unit tests, I found there is no similar tests for exclusion cases, = so > it would be difficult for me to write one from scratch, and I added it to > "without-tests" file together with the other exclude plugins. I hope this= is > not a big problem. Yeah, that's OK. In principle it'd be good to add a yarn test for integration testing, so that there is _some_ assurance the new feature work. Adapting the "exclude cache directories" section in yarns/0030-basic.yarn should be fairly easy. (Yarn in my tool for integration testing. It's in the cmdtest package.) > Now about the documentation: I modified the english markdown manual, > obviously I cannot modify german and french. By the way I'm Italian, it > would be nice if I could contribute a translation, but I'm not sure I'd h= ave > the needed time, and secondly I think technical things are better in > original english. But let me know what you think. I'd love for the Obnam manual to be translated to Italian, and other languages. While I prefer English myself, a lot of people don't know much or any English. > A note: the German PDF fails to build on my computer. I believe Jan has responsded to this. I tend to install the texlive-full package, since life is too short to find the minimal required set of packages from the TeX universe. > A doubt: where is the man page? Because it needs to be updated too, but I > can't find its sources. See obnam.1.in for the English version. It gets filled in with information about options automatically during the build process, using the help text for the options. > A suggestion: adding "*.pyc" to .gitignore, otherwise the git status is a > mess with all the compiled python files. I prefer to add *.pyc to my global git ignore file, instead of adding it to .gitignore in every Python project separately. > + def config_loaded(self): > + if len(self.app.settings['exclude-if-present']) > 0: This would feel more Pythonic to me like this: if self.app.settings['exclude-if-present']: Not a big deal. --=20 I want to build worthwhile things that might last. --joeyh --25dz43n4rurbvt5b Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETNTnrewG6wEE1EJ3bC+mFux6IDEFAllZ1xUACgkQbC+mFux6 IDF/NQ//V936xNldXMtlDDS55UqByqYoZhRhdw2/1uWKFntva+3r7EglWkFBvMvT 1KdMfEypJ3PeUs3JwCQ0PEQrx3BIBJg/4r4p7UqLYudDk2CpCf7aZuSRriqtkw1/ TRKf8/pjlghRfDpxh/NkWx4ufEVlkZKGM+Str/0BnbJoGAPhruHV9biPeS8uSqce fSW4UfE2b7JhnE8vncGzQmiTi1BpiM1DIojIVNgncwaAGHLOLy4YQLOq/DFLBHgk T7UCMUi1PDYXgGOBgHapeg7SDA43KdigEuUPfgKJkuQ8mdtThXKTHPSGsqLfcAg7 0TRgRVnaob/T18fg52rmNPuwZDzOepPgRnusWMRnmlwiB44CPb4eJ13KuxeDDSJY d2MVb+hk1WtaM2guc+v7LrifqIMJAJjCuNUAllXDUwVWQmtUkMr6ZQE8U9gSd08h LgtV/C4yn787kdMiwcmu0enYVsrfGVC5+lWJfRbaLN3hhR08U3X6B0fGt8yavOFr DnL/P83wvh6QOTXn6SOTpU/IHa/F4CLLLZf6+Njc7T41kqd135wiZm0jMAZWsW2o k/8IYVqrSnc6iDiqPIccYqKOzUJ41fp/jfCJ22aR5t0XAn5pTu1PfPYu6YLhX5a3 y+D0yLhJB9nqLlFOIoL8CE6LRS+19IG1Jj39iAZH4B9o/1ZYhMI= =Rc9u -----END PGP SIGNATURE----- --25dz43n4rurbvt5b-- --===============8028953905777979665== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ obnam-dev mailing list obnam-dev@obnam.org http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org --===============8028953905777979665==--