[Yum-devel] [PATCH] Add downloadonly option to userconfirm download prompt.
zpavlas at redhat.com
Wed Apr 24 07:53:29 UTC 2013
> I mean, I think we are thinking the same thing ... generally I run a
> command, and think yeh I want to just download that stuff so hit 'n' and
> then run it again with -y --downloadonly and now I can just hit 'd' at
> the prompt instead.
> Or is there something else that I'm missing?
Both --assumeyes and --assumeno skip the prompt. I was thinking
that --downloadonly should skip it, too (so you don't have to add -y).
@@ -1959,7 +1959,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
# shortcut for the always-off/always-on options
- if self.conf.assumeyes and not self.conf.assumeno:
+ if (self.conf.assumeyes or self.conf.downloadonly) and not self.conf.assumeno:
More information about the Yum-devel