Permalink
Browse files

The 'prereqs' key is optional

  • Loading branch information...
dvarrazzo committed Apr 28, 2011
1 parent e2fe9ee commit 83954b0a328d95bd58891ccb8f7045ec422399f6
Showing with 6 additions and 5 deletions.
  1. +1 −1 CHANGES
  2. +5 −4 pgxn/client/commands.py
View
@@ -2,7 +2,7 @@ pgxn.client 0.1a3
=================
- Fixed executable mode for scripts unpacked from the zip files.
-- Added 'list' command.
+- Added 'list' and 'info' commands.
pgxn.client 0.1a2
View
@@ -360,10 +360,11 @@ def print_details(self, spec, ver):
print "%s: %s: %s" % (k, ext, dext['version'])
k = 'prereqs'
- for phase, rels in data[k].iteritems():
- for rel, pkgs in rels.iteritems():
- for pkg, ver in pkgs.iteritems():
- print "%s: %s: %s %s" % (phase, rel, pkg, ver)
+ if k in data:
+ for phase, rels in data[k].iteritems():
+ for rel, pkgs in rels.iteritems():
+ for pkg, ver in pkgs.iteritems():
+ print "%s: %s: %s %s" % (phase, rel, pkg, ver)
from pgxn.utils import sha1

0 comments on commit 83954b0

Please sign in to comment.