Skip to content

Commit

Permalink
Don't require enabled repos for URL installs. BZ 1175315
Browse files Browse the repository at this point in the history
This makes the check consistent with installPkgs() (cli.py:979).
  • Loading branch information
dmnks committed Jun 14, 2017
1 parent 8bbb3a9 commit 9115c85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yumcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ def checkEnabledRepo(base, possible_local_files=[]):
return

for lfile in possible_local_files:
if lfile.endswith(".rpm") and os.path.exists(lfile):
if lfile.endswith(".rpm") and (yum.misc.re_remote_url(lfile) or
os.path.exists(lfile)):
return

# runs prereposetup (which "most" plugins currently use to add repos.)
Expand Down

0 comments on commit 9115c85

Please sign in to comment.