Mercurial > treepkg
comparison test/test_packager.py @ 511:e5b66539f893
new variable to set choose the scm for sources and debian dirs
svn_url and git_url are now deprecated in favour of url and scm_type
added a tag detector for git in kde enterprise packager
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Tue, 09 Nov 2010 17:20:47 +0000 |
parents | ca95be9d033a |
children | de78084fcbce |
comparison
equal
deleted
inserted
replaced
510:1f04bd88fca3 | 511:e5b66539f893 |
---|---|
110 | 110 |
111 def runtest(self, debrevision, group_args=None, **extra_track_args): | 111 def runtest(self, debrevision, group_args=None, **extra_track_args): |
112 rootcmd = os.path.join(os.path.dirname(__file__), os.pardir, "test", | 112 rootcmd = os.path.join(os.path.dirname(__file__), os.pardir, "test", |
113 "mocksudopbuilder.py") | 113 "mocksudopbuilder.py") |
114 track = PackageTrack(name="testpkg", base_dir=self.trackdir, | 114 track = PackageTrack(name="testpkg", base_dir=self.trackdir, |
115 svn_url=self.svn_url, builderconfig="", | 115 url=self.svn_url, builderconfig="", |
116 root_cmd=[sys.executable, rootcmd], | 116 root_cmd=[sys.executable, rootcmd], |
117 deb_email="treepkg@example.com", | 117 deb_email="treepkg@example.com", |
118 deb_fullname="treepkg tester", | 118 deb_fullname="treepkg tester", |
119 **extra_track_args) | 119 **extra_track_args) |
120 | 120 |
591 | 591 |
592 class PackageTrackWithDependencies(treepkg.packager.PackageTrack): | 592 class PackageTrackWithDependencies(treepkg.packager.PackageTrack): |
593 | 593 |
594 def __init__(self, name, handle_dependencies, requires, provides): | 594 def __init__(self, name, handle_dependencies, requires, provides): |
595 defaults = dict(base_dir="/home/builder/tracks/" + name, | 595 defaults = dict(base_dir="/home/builder/tracks/" + name, |
596 svn_url="svn://example.com", | 596 url="svn://example.com", |
597 root_cmd=["false"], | 597 root_cmd=["false"], |
598 builderconfig="/home/builder/pbuilderrc", | 598 builderconfig="/home/builder/pbuilderrc", |
599 deb_email="treepkg@example.com", deb_fullname="treepkg", | 599 deb_email="treepkg@example.com", deb_fullname="treepkg", |
600 handle_dependencies=handle_dependencies) | 600 handle_dependencies=handle_dependencies) |
601 super(PackageTrackWithDependencies, | 601 super(PackageTrackWithDependencies, |