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

Javi Merino cibervicho at gmail.com
Sat Mar 3 23:00:21 UTC 2012


On Sat, Mar 03, 2012 at 12:06:45PM +0100, Jakub Wilk wrote:
> * 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/*

Tested in the mips porter box and fixed in r8262.

Thanks!
Javi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20120303/dfe18c9d/attachment.pgp>


More information about the Python-apps-team mailing list