Blame SOURCES/BZ-1175315-dont-require-enabled-repos-for-url.patch

5e9bef
commit 9115c850c9fda46c26dcc0f2f627b7483aa39435
5e9bef
Author: Michal Domonkos <mdomonko@redhat.com>
5e9bef
Date:   Wed Jun 14 18:38:03 2017 +0200
5e9bef
5e9bef
    Don't require enabled repos for URL installs. BZ 1175315
5e9bef
    
5e9bef
    This makes the check consistent with installPkgs() (cli.py:979).
5e9bef
5e9bef
diff --git a/yumcommands.py b/yumcommands.py
5e9bef
index 502bcb3..1be1051 100644
5e9bef
--- a/yumcommands.py
5e9bef
+++ b/yumcommands.py
5e9bef
@@ -253,7 +253,8 @@ def checkEnabledRepo(base, possible_local_files=[]):
5e9bef
         return
5e9bef
 
5e9bef
     for lfile in possible_local_files:
5e9bef
-        if lfile.endswith(".rpm") and os.path.exists(lfile):
5e9bef
+        if lfile.endswith(".rpm") and (yum.misc.re_remote_url(lfile) or
5e9bef
+                                       os.path.exists(lfile)):
5e9bef
             return
5e9bef
 
5e9bef
     # runs prereposetup (which "most" plugins currently use to add repos.)