Mercurial > treepkg
diff test/test_packager.py @ 232:e3cda08d2619
When checking whether to build a new revision, also update the rules
working copy, use it's revision too when comparing the current revision
with the already built revisions and use it when building a new revision.
Update the tests for this.
Part of this change is that now, the default revision for the rules is 0
not 1 as previously. To avoid extra builds, existing treepkg instances
will have to be updated so that the directories end in -0 not -1. There
will be a tool to help with this.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Tue, 13 Jan 2009 15:01:22 +0000 |
parents | 653a45adda50 |
children | faeeac2c4c71 |
line wrap: on
line diff
--- a/test/test_packager.py Tue Jan 13 14:31:59 2009 +0000 +++ b/test/test_packager.py Tue Jan 13 15:01:22 2009 +0000 @@ -130,7 +130,7 @@ version = track.last_changed_revision() # Now check the source and binary package files - pkgdir = os.path.join(self.trackdir, "pkg", "%d-1" % version) + pkgdir = os.path.join(self.trackdir, "pkg", "%d-0" % version) self.assertEquals(sorted(os.listdir(os.path.join(pkgdir, "src"))), [name % locals() for name in ["testpkg_%(version)d-%(debrevision)s.diff.gz",