[sysadmin-bin] post-receive-notify-ostree: another minor fix



commit 15ab1d6c642ddf0ed4946be824b5ab7956a06c07
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Tue Oct 9 02:22:36 2012 -0400

    post-receive-notify-ostree: another minor fix

 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 42116ba..18bf7ec 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 not 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]