diff options
Diffstat (limited to 'pyanaconda/packaging/yumpayload.py')
-rw-r--r-- | pyanaconda/packaging/yumpayload.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py index 6ca2f3b3f..1f1017601 100644 --- a/pyanaconda/packaging/yumpayload.py +++ b/pyanaconda/packaging/yumpayload.py @@ -415,10 +415,12 @@ reposdir=%s # start with a fresh YumBase instance self.reset(root=root) - # If askmethod was given on the command line, we don't want to do + # If this is a kickstart install and no method has been set up, or + # askmethod was given on the command line, we don't want to do # anything. Just disable all repos and return. This should avoid # metadata fetching. - if flags.askmethod: + if (not self.data.method.method and flags.automatedInstall) or \ + flags.askmethod: with _yum_lock: for repo in self._yum.repos.repos.values(): self.disableRepo(repo.id) |