Hi Jakub, Jakub Wilk wrote:
> The attached patch adds option to build package multiple times in a > row. This is useful for testing correctness of the clean target. > > The patch looks noisy, because I had to indent a few dozen of lines; > but other than that, it adds just a few lines. > > If case you wonder why can't I just call dpkg-buildpackage in a > loop: I can't if run it through a wrapper like sbuild or > $VCS-buildpackage. Neat --- sounds like a useful test. I'm not convinced this is worth a dpkg-buildpackage option on its own. Wouldn't other sequences of targets be worth testing, too? (E.g., "debian/rules build && debian/rules clean && fakeroot debian/rules binary".) I assume in the $VCS-buildpackage case you are building with the --export-dir option so the build tree is wiped out between builds. Possible alternative methods: a) teaching sbuild and $VCS-buildpackage an option to use another command instead of dpkg-buildpackage, or b) (as a hack, if (a) is too fussy) overriding dpkg-buildpackage with a wrapper that appears earlier on the $PATH. Hope that helps, Jonathan -- To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org