[Python-apps-team] Bug#731623: mercurial: recent change in debian/rules causes error on repeated builds

Faheem Mitha faheem at faheem.info
Sat Dec 7 22:20:53 UTC 2013


On Sun, 8 Dec 2013, Faheem Mitha wrote:

> On Sat, 7 Dec 2013, Faheem Mitha wrote:

>> The

>>    rm tests/test-check-pyflakes.t

>> breaks repeated builds for me here, specifically `debuild
>> clean`. Obvious comment: rm returns an error if the file it is asked
>> to remove does not exist, and once it has been removed, it is not
>> going to be restored.

>> Changing this to

>>    rm -f tests/test-check-pyflakes.t

>> Fixes it for me.

> On second thoughts, maybe patching out that file would be a cleaner solution.

#debian-mentors disagrees. They suggested two alternative slight 
modifications to your version.

override_dh_clean:
         dh_clean tests/test-check-pyflakes.t

or perhaps better, just add tests/test-check-pyflakes.t in debian/clean

                                                         Regards, Faheem



More information about the Python-apps-team mailing list