[Python-apps-team] [Python-apps-commits] r8240 - in packages/mercurial/trunk/debian (changelog rules)

Jakub Wilk jwilk at debian.org
Sat Mar 3 11:06:45 UTC 2012


* Javi Merino <vicho at debian.org>, 2012-03-03, 00:28:
>>>+ifeq ($(DEB_HOST_ARCH),mips)
>>>+		sed -i -e 's/sleep 1/sleep 2/' $(CURDIR)/tests/test-pull-pull-corruption.t $(CURDIR)/tests/test-pull-pull-corruption2.t
>>>+endif
>>
>>Wouldn't that make the package FTBFS if built twice in a row (due to 
>>uncommitted local changes)?
>
>And I guess undoing the patch after running the testsuite is a no-no, 
>right?

What I would do is backup & restore, i.e. something like this (sorry, 
untested!):

ifeq ($(DEB_HOST_ARCH),mips)
	sed -i.deb-backup -e 's/sleep 1/sleep 2/' $(CURDIR)/tests/test-pull-pull-corruption.t $(CURDIR)/tests/test-pull-pull-corruption2.t
endif

and then, after the tests are done:

	rename.ul .deb-backup '' $(CURDIR)/tests/*

-- 
Jakub Wilk



More information about the Python-apps-team mailing list