backend/satellite_tools/spacewalk-remove-channel | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit e71ee32a72268fca31406f1eba7754bf6f26cf54
Author: Justin Sherrill <jsherril(a)redhat.com>
Date: Thu Mar 4 15:16:35 2010 -0500
handling error case a bit better for spacewalk-channel-remove
diff --git a/backend/satellite_tools/spacewalk-remove-channel
b/backend/satellite_tools/spacewalk-remove-channel
index 050c9a4..6a70279 100755
--- a/backend/satellite_tools/spacewalk-remove-channel
+++ b/backend/satellite_tools/spacewalk-remove-channel
@@ -63,7 +63,8 @@ def main():
try:
LOCK = rhnLockfile.Lockfile('/var/run/satellite-sync.pid')
except rhnLockfile.LockfileLockedException:
- systemExit(1, "ERROR: either another instance of spacewalk-remove-channel is
running, or a satellite-sync is currently taking place.")
+ print("ERROR: Either another instance of spacewalk-remove-channel is
running, or a satellite-sync is currently taking place.")
+ sys.exit(-1)
global options_table
Show replies by date