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:
-rw-r--r--calm/tool_util.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/calm/tool_util.py b/calm/tool_util.py
index f677f86..dc4d882 100644
--- a/calm/tool_util.py
+++ b/calm/tool_util.py
@@ -48,8 +48,12 @@ def permitted(p):
logging.error("who are you?")
return False
- # CYGNAME is a maintainer for package
pkg_list = maintainers.pkg_list(common_constants.PKGMAINT)
+ if p not in pkg_list:
+ logging.error("%s is not a package name" % p)
+ return False
+
+ # CYGNAME is a maintainer for package
if cygname in pkg_list[p].maintainers():
return True