remove the exists checking of local repo
authorZhang Qiang <qiang.z.zhang@intel.com>
Tue, 23 Apr 2013 08:33:24 +0000 (16:33 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Tue, 23 Apr 2013 08:33:24 +0000 (16:33 +0800)
KSRepoUpdater just responsible for adding / updating repos.

Also this is the easist way to fix local repo issue, as in future
We will generate ks file locally, so we can don't need change build
module much for this issue.

Change-Id: I60fe587b0e716c57c5747a1294ffe95fcedb7955

gitbuildsys/ks_utils.py

index a4367141d0f2154c2e1af502cc1898a2ea308f57..f1d847b0d853b9ad7b8654f21289c77190715d04 100644 (file)
@@ -44,7 +44,7 @@ class KSRepoUpdater(object):
                     save=False, ssl_verify=None):
         '''build repo str with specified repo options'''
         repo_args = ['repo']
-        if url.startswith('/') and os.path.exists(url):
+        if url.startswith('/'):
             url = 'file:///' + url.lstrip('/')
         if user and passwd:
             url = SafeURL(url, user, passwd).full