[sysadmin-bin] post-receive-notify-ostree: more minor fixes



commit 348747bf0322e44078c690c2cfd53f614d7d618b
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Tue Oct 9 02:21:03 2012 -0400

    post-receive-notify-ostree: more minor fixes

 git/post-receive-notify-ostree |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/git/post-receive-notify-ostree b/git/post-receive-notify-ostree
index ff05640..42116ba 100755
--- a/git/post-receive-notify-ostree
+++ b/git/post-receive-notify-ostree
@@ -48,7 +48,7 @@ def main():
     module_name = re.sub('\+', '__2b', module_name)
     module_name = re.sub('-', '__2d', module_name)
 
-    if (!re.match('^[A-Za-z0-9_.]$', module_name)):
+    if not re.match('^[A-Za-z0-9_.]$', module_name):
         print >>sys.stderr, "Module name has unexpected characters, can't notify ostree.gnome.org"
         return
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]