diff options
author | Rune Halvorsen <runeh@vorkosigan.(none)> | 2009-08-05 00:24:13 +0200 |
---|---|---|
committer | Rune Halvorsen <runeh@vorkosigan.(none)> | 2009-08-05 00:24:13 +0200 |
commit | 06d5c4caa035b17145cda129640a4ae4820f3bad (patch) | |
tree | f10252ce9a73e67bbecc47b17585a946ee779a2b | |
parent | 51b234aa16195c2ef5f714dc5db271b16b6e1024 (diff) | |
download | chishop-06d5c4caa035b17145cda129640a4ae4820f3bad.tar.bz2 chishop-06d5c4caa035b17145cda129640a4ae4820f3bad.tar.xz chishop-06d5c4caa035b17145cda129640a4ae4820f3bad.zip |
Fixed ppadd command. Was broken due to change in pkginfo module
-rw-r--r-- | djangopypi/management/commands/ppadd.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/djangopypi/management/commands/ppadd.py b/djangopypi/management/commands/ppadd.py index 78eb2cf..aa45274 100644 --- a/djangopypi/management/commands/ppadd.py +++ b/djangopypi/management/commands/ppadd.py | |||
@@ -134,10 +134,9 @@ added""" | |||
134 | print "%s-%s added" % (meta.name, meta.version) | 134 | print "%s-%s added" % (meta.name, meta.version) |
135 | 135 | ||
136 | def _get_meta(self, path): | 136 | def _get_meta(self, path): |
137 | if path.endswith((".zip", ".tar.gz")): | 137 | data = pkginfo.get_metadata(path) |
138 | return pkginfo.SDist(path) | 138 | if data: |
139 | elif path.endswith(".egg"): | 139 | return data |
140 | return pkginfo.BDist(path) | ||
141 | else: | 140 | else: |
142 | print "Couldn't get metadata from %s. Not added to chishop" % os.path.basename(path) | 141 | print "Couldn't get metadata from %s. Not added to chishop" % os.path.basename(path) |
143 | return None | 142 | return None |