summaryrefslogtreecommitdiff
path: root/plugins/backend
diff options
context:
space:
mode:
authorHuang Hao <hao.h.huang@intel.com>2013-02-27 15:10:35 +0800
committerHuang Hao <hao.h.huang@intel.com>2013-02-27 15:10:35 +0800
commit25fd049b003bb29b6e006135486076360e2503a0 (patch)
tree5c76aab109fcbdd714c4566e94136cf7b09a03bd /plugins/backend
parentb3eafc14828841d3e5cfee40cb782fe110a2361e (diff)
downloadmic-25fd049b003bb29b6e006135486076360e2503a0.tar.gz
mic-25fd049b003bb29b6e006135486076360e2503a0.tar.bz2
mic-25fd049b003bb29b6e006135486076360e2503a0.zip
Fix bad indentations.
Change-Id: I6a1b15a130576c87a85db864ec3997b7c3005f05
Diffstat (limited to 'plugins/backend')
-rw-r--r--plugins/backend/yumpkgmgr.py6
-rwxr-xr-xplugins/backend/zypppkgmgr.py8
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/backend/yumpkgmgr.py b/plugins/backend/yumpkgmgr.py
index 95690c6..955f813 100644
--- a/plugins/backend/yumpkgmgr.py
+++ b/plugins/backend/yumpkgmgr.py
@@ -78,12 +78,12 @@ class MyYumRepository(yum.yumRepo.YumRepository):
proxy = None
if url:
- proxy = get_proxy_for(url)
+ proxy = get_proxy_for(url)
else:
- proxy = get_proxy_for(self.urls[0])
+ proxy = get_proxy_for(self.urls[0])
if proxy:
- self.proxy = str(proxy)
+ self.proxy = str(proxy)
size = int(size) if size else None
rvalue = super(MyYumRepository, self)._getFile(url,
diff --git a/plugins/backend/zypppkgmgr.py b/plugins/backend/zypppkgmgr.py
index 0d02ad8..16ba467 100755
--- a/plugins/backend/zypppkgmgr.py
+++ b/plugins/backend/zypppkgmgr.py
@@ -278,9 +278,9 @@ class Zypp(BackendPlugin):
return True;
else:
if startx and name.endswith(pkg[1:]):
- return True;
+ return True;
if endx and name.startswith(pkg[:-1]):
- return True;
+ return True;
return False;
@@ -883,8 +883,8 @@ class Zypp(BackendPlugin):
def _add_prob_flags(self, *flags):
for flag in flags:
- if flag not in self.probFilterFlags:
- self.probFilterFlags.append(flag)
+ if flag not in self.probFilterFlags:
+ self.probFilterFlags.append(flag)
def get_proxies(self, pobj):
if not pobj: