On Fri, 2012-10-12 at 15:33 +0200, Zdeněk Pavlas wrote: > Commandline options added: > --downloadonly: Don't update, just download. > --downloaddir=directory: Specifies alternative DL directory. > --- > cli.py | 6 ++++++ > docs/yum.8 | 6 ++++++ > yum/__init__.py | 5 ++++- > yum/repos.py | 4 ++++ > 4 files changed, 20 insertions(+), 1 deletions(-)
Alter the specfile to do the obsoletes please :).
[...]
> diff --git a/yum/__init__.py b/yum/__init__.py
> index a159706..1479d33 100644
> --- a/yum/__init__.py
> +++ b/yum/__init__.py
> @@ -2207,6 +2207,10 @@ much more problems).
> errors = {}
> def adderror(po, msg):
> errors.setdefault(po, []).append(msg)
> + downloadonly = getattr(self.conf, 'downloadonly', False)
> + if downloadonly:
> + # callers are expected to print this & DL errors, then exit
> + adderror('--downloadonly', _('Exiting as requested'))
Doesn't this mean we don't exit 0? I think the plugin does that
atm. ... but that's mainly a bug due to how it has to work.
I think we'd want to be able to do something like:
yum up --downloadonly && yum -C up
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Yum-devel mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum-devel
