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

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