backend/satellite_tools/reposync.py | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 62f4d5ef491fc0b47e6ab7e4974b6ab7c7e962c2
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Jan 24 14:37:26 2011 +0100
do not print TB if we get unknown type
diff --git a/backend/satellite_tools/reposync.py b/backend/satellite_tools/reposync.py
index 15ffa62..f8182b3 100644
--- a/backend/satellite_tools/reposync.py
+++ b/backend/satellite_tools/reposync.py
@@ -53,6 +53,9 @@ class RepoSync:
#os.fchown isn't in 2.4 :/
os.system("chgrp apache " + default_log_location + log_filename)
+ if options.type not in ["yum"]:
+ print "Error: Unknown type %s" % options.type
+ sys.exit(2)
quit = False
if not options.url:
Show replies by date