Mercurial > treepkg
changeset 411:8dd64f8bf572 treepkg-status
fixed some small issues
remember: run pychecker BEFORE the commit
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Thu, 22 Jul 2010 11:09:52 +0000 |
parents | 5e8546444a8e |
children | 58ecf7c0ecba |
files | treepkg/info/status.py |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/treepkg/info/status.py Thu Jul 22 11:02:36 2010 +0000 +++ b/treepkg/info/status.py Thu Jul 22 11:09:52 2010 +0000 @@ -56,7 +56,8 @@ group = get_packager_group(config) treepkgrootinfo = TreepkgRootInfo(group.name, group.treepkg_dir, group.tracks_dir) - self.tpgkroot = TreepkgRoot(version, treepkgrootinfo) + version = "1.0" + self.tpkgroot = TreepkgRoot(version, treepkgrootinfo) tracks = group.get_package_tracks() for track in tracks: @@ -118,7 +119,7 @@ class TreepkgRoot: - def __init__(self, version, info) + def __init__(self, version, info): self.version = version self.info = info self.tracks = [] @@ -134,7 +135,7 @@ for track in self.tracks: tracksele.appendChild(track.toxml()) root.appendChild(tracksele) - root.appendChild(info.toxml()) + root.appendChild(self.info.toxml()) return root @staticmethod @@ -183,7 +184,7 @@ text = doc.createTextNode(self.version) versionele.appendChild(text) root.appendChild(versionele) - return root + return root @staticmethod def fromxml(node): @@ -195,8 +196,7 @@ treepkgpath = getTextFromNode(treepkgpathele) trackspathele = getChild(infoele, "trackspath") trackspath = getTextFromNode(trackspathele) - trackinfo = TreepkgRootInfo(name, treepkgpath, trackspath, version) - return trackinfo + return TreepkgRootInfo(name, treepkgpath, trackspath, version) class TreepkgTrackInfo: