diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | rpm-find-leaves | 2 | ||||
-rw-r--r-- | urpme | 2 | ||||
-rwxr-xr-x | urpmf | 2 | ||||
-rwxr-xr-x | urpmi | 2 | ||||
-rwxr-xr-x | urpmi.addmedia | 2 | ||||
-rw-r--r-- | urpmi.recover | 2 | ||||
-rwxr-xr-x | urpmi.removemedia | 2 | ||||
-rwxr-xr-x | urpmi.update | 2 | ||||
-rwxr-xr-x | urpmq | 2 |
10 files changed, 11 insertions, 9 deletions
@@ -1,3 +1,5 @@ +- all tools: + o exit with code 1 after displaying usage (instead of exit code 0) - urpmi: o with rsync, use --copy-links (to have the same behaviour as http/ftp, and so allow symlinks on the server) diff --git a/rpm-find-leaves b/rpm-find-leaves index 83e48056..f41c0a26 100644 --- a/rpm-find-leaves +++ b/rpm-find-leaves @@ -35,7 +35,7 @@ while ($_ = shift) { next; }; $_ eq '-f' and do { $options{fullname} = 1; next }; - print $usage; exit 0; + print $usage; exit 1; } my @packages; @@ -58,7 +58,7 @@ usage: ") . N(" --verbose, -v - verbose mode. ") . N(" -a - select all packages matching expression. "); - exit(0); + exit(1); } @ARGV or usage(); @@ -84,7 +84,7 @@ usage: urpmf [options] pattern-expression ") . N(" -m - the media in which the package was found ") . N(" -f - print version, release and arch with name. "); - exit(0); + exit(1); } #- default options. @@ -154,7 +154,7 @@ usage: ") . N(" --verbose, -v - verbose mode. ") . "\n" . N(" names or rpm files given on command line will be installed. "); - exit(0); + exit(1); } # Parse command line diff --git a/urpmi.addmedia b/urpmi.addmedia index acbd852a..0ef5b807 100755 --- a/urpmi.addmedia +++ b/urpmi.addmedia @@ -72,7 +72,7 @@ and [options] are from ") . N(" -v - verbose mode. "); print($m ? "$usage\n$m" : $usage); - exit 0; + exit 1; } #- remove quietly the failing media. diff --git a/urpmi.recover b/urpmi.recover index 3e9cd0af..d44ee769 100644 --- a/urpmi.recover +++ b/urpmi.recover @@ -41,7 +41,7 @@ usage: or rollback the specified number of transactions ") . N(" --disable - turn off repackaging "); - exit(0); + exit(1); } sub fmt_tid { diff --git a/urpmi.removemedia b/urpmi.removemedia index b60c1f55..88e9a823 100755 --- a/urpmi.removemedia +++ b/urpmi.removemedia @@ -45,7 +45,7 @@ where <name> is a medium name to remove. ") . N(" -v - verbose mode. ") . N(" --urpmi-root - use another root for urpmi db & rpm installation. ") . $msg; - exit 0; + exit 1; } diff --git a/urpmi.update b/urpmi.update index 8b72aaee..9d6357e2 100755 --- a/urpmi.update +++ b/urpmi.update @@ -52,7 +52,7 @@ where <name> is a medium name to update. ") . N(" -q - quiet mode. ") . N(" -v - verbose mode. "); - exit 0; + exit 1; } $ENV{PATH} = "/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"; @@ -101,7 +101,7 @@ usage: ") . N(" -Y - like -y, but forces to match case-insensitively. ") . "\n" . N(" names or rpm files given on command line are queried. "); - exit(0); + exit(1); } sub escape_shell ($) { |