diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-10 08:37:18 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-10 08:37:18 +0000 |
commit | 38503ac49864e6de1c90a9fd7c5ddad40076baa7 (patch) | |
tree | 5d1007667cb0123de5d56e83bd6e7f8e76181df9 /urpm | |
parent | 46307104b892d733ff7d83b5aabcb61f02991904 (diff) | |
download | urpmi-38503ac49864e6de1c90a9fd7c5ddad40076baa7.tar urpmi-38503ac49864e6de1c90a9fd7c5ddad40076baa7.tar.gz urpmi-38503ac49864e6de1c90a9fd7c5ddad40076baa7.tar.bz2 urpmi-38503ac49864e6de1c90a9fd7c5ddad40076baa7.tar.xz urpmi-38503ac49864e6de1c90a9fd7c5ddad40076baa7.zip |
Add an option to urpmi, --expect-install, that tells urpmi to return with
an exit status of 15 if it installed nothing.
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/args.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm/args.pm b/urpm/args.pm index a1e9d9af..d81e28a1 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -113,6 +113,7 @@ my %options_spec = ( 'excludepath|exclude-path=s' => sub { $urpm->{options}{excludepath} = $_[1] }, 'excludedocs|exclude-docs' => sub { $urpm->{options}{excludedocs} = 1 }, 'more-choices' => sub { $urpm->{options}{morechoices} = 1 }, + 'expect-install!' => \$::expect_install, a => \$::all, q => sub { --$::verbose; $::rpm_opt = '' }, v => sub { ++$::verbose; $::rpm_opt = 'vh' }, |