comparison enterprise/kdei18n.py @ 52:78cf5f6778ec

Rename 'packagel ine' -> 'package track'
author Bernhard Herzog <bh@intevation.de>
date Tue, 03 Apr 2007 20:33:33 +0200
parents f7f89548a2a6
children 74cd21b6400b
comparison
equal deleted inserted replaced
50:225206553bba 52:78cf5f6778ec
47 kdepimversion = "3.5.5" 47 kdepimversion = "3.5.5"
48 version_template = "%(kdepimversion)s.enterprise.0.%(enterprise_version)s" 48 version_template = "%(kdepimversion)s.enterprise.0.%(enterprise_version)s"
49 return version_template % locals() 49 return version_template % locals()
50 50
51 def unpack_orig_tarball(self): 51 def unpack_orig_tarball(self):
52 orig_tarball = self.pkg_line.orig_tarball 52 orig_tarball = self.pkg_track.orig_tarball
53 run.call(["tar", "xjf", orig_tarball, "-C", self.work_dir]) 53 run.call(["tar", "xjf", orig_tarball, "-C", self.work_dir])
54 tarbasename = os.path.basename(orig_tarball) 54 tarbasename = os.path.basename(orig_tarball)
55 splitext = os.path.splitext 55 splitext = os.path.splitext
56 return os.path.join(self.work_dir, 56 return os.path.join(self.work_dir,
57 splitext(splitext(tarbasename)[0])[0]) 57 splitext(splitext(tarbasename)[0])[0])
120 class RevisionPackager(treepkg.packager.RevisionPackager): 120 class RevisionPackager(treepkg.packager.RevisionPackager):
121 121
122 source_packager_cls = SourcePackager 122 source_packager_cls = SourcePackager
123 123
124 124
125 class PackageLine(treepkg.packager.PackageLine): 125 class PackageTrack(treepkg.packager.PackageTrack):
126 126
127 revision_packager_cls = RevisionPackager 127 revision_packager_cls = RevisionPackager
128 128
129 svn_external_subdirs = ["scripts", "scripts/admin"] 129 svn_external_subdirs = ["scripts", "scripts/admin"]
130 130
131 extra_config_desc = ["orig_tarball"] 131 extra_config_desc = ["orig_tarball"]
132 132
133 def __init__(self, *args, **kw): 133 def __init__(self, *args, **kw):
134 self.orig_tarball = kw.pop("orig_tarball") 134 self.orig_tarball = kw.pop("orig_tarball")
135 super(PackageLine, self).__init__(*args, **kw) 135 super(PackageTrack, self).__init__(*args, **kw)
136 136
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)