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

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