Mercurial > treepkg
comparison 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 |
comparison
equal
deleted
inserted
replaced
231:7dbf0a3443bb | 232:e3cda08d2619 |
---|---|
128 # check_package_tracks will leave the checkout in the revision | 128 # check_package_tracks will leave the checkout in the revision |
129 # that was actually packaged. | 129 # that was actually packaged. |
130 version = track.last_changed_revision() | 130 version = track.last_changed_revision() |
131 | 131 |
132 # Now check the source and binary package files | 132 # Now check the source and binary package files |
133 pkgdir = os.path.join(self.trackdir, "pkg", "%d-1" % version) | 133 pkgdir = os.path.join(self.trackdir, "pkg", "%d-0" % version) |
134 self.assertEquals(sorted(os.listdir(os.path.join(pkgdir, "src"))), | 134 self.assertEquals(sorted(os.listdir(os.path.join(pkgdir, "src"))), |
135 [name % locals() for name in | 135 [name % locals() for name in |
136 ["testpkg_%(version)d-%(debrevision)s.diff.gz", | 136 ["testpkg_%(version)d-%(debrevision)s.diff.gz", |
137 "testpkg_%(version)d-%(debrevision)s.dsc", | 137 "testpkg_%(version)d-%(debrevision)s.dsc", |
138 "testpkg_%(version)d.orig.tar.gz"]]) | 138 "testpkg_%(version)d.orig.tar.gz"]]) |