Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2016-07-16 19:06:51 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2016-07-18 19:23:03 +0300
commitf834d047265eca03a9053c6c7b222bb4a70f0b9b (patch)
treea465086fd4a4736c2e35323dfe6f4f91f9b0f3a8
parent8f82a551da77e431fc56cb24e3553cd923563006 (diff)
Don't fail if a package has no curr version
-rwxr-xr-xcalm/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/calm/package.py b/calm/package.py
index d1e79dd..338ecc1 100755
--- a/calm/package.py
+++ b/calm/package.py
@@ -495,7 +495,8 @@ def validate_packages(args, packages):
if re.match(r'^lib.*\d', install_p):
continue
- versions[packages[install_p].stability['curr']].append(install_p)
+ if 'curr' in packages[install_p].stability:
+ versions[packages[install_p].stability['curr']].append(install_p)
if len(versions) > 1:
out = []