summaryrefslogtreecommitdiff
path: root/plugins/backend
diff options
context:
space:
mode:
authorGui Chen <gui.chen@intel.com>2013-06-25 05:19:54 -0400
committerGui Chen <gui.chen@intel.com>2013-06-25 05:19:54 -0400
commitfd149df8ed1742d951d7b46605b144d2df206c75 (patch)
tree4390fdaa5a13048f22d9edad514522c6063f7982 /plugins/backend
parentd4ee528a8578afebb26ae21d57b1791361acc1ee (diff)
downloadmic-fd149df8ed1742d951d7b46605b144d2df206c75.tar.gz
mic-fd149df8ed1742d951d7b46605b144d2df206c75.tar.bz2
mic-fd149df8ed1742d951d7b46605b144d2df206c75.zip
fix rpm header not including 'VCS' tag
Signed-off-by: Gui Chen <gui.chen@intel.com>
Diffstat (limited to 'plugins/backend')
-rwxr-xr-xplugins/backend/zypppkgmgr.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/backend/zypppkgmgr.py b/plugins/backend/zypppkgmgr.py
index c760859..7ee83b6 100755
--- a/plugins/backend/zypppkgmgr.py
+++ b/plugins/backend/zypppkgmgr.py
@@ -567,7 +567,11 @@ class Zypp(BackendPlugin):
'version': hdr['version'],
'release': hdr['release']
}
- self.__pkgs_vcsinfo[lname] = hdr['VCS']
+ try:
+ self.__pkgs_vcsinfo[lname] = hdr['VCS']
+ except ValueError:
+ # if rpm not support VCS, set to None
+ self.__pkgs_vcsinfo[lname] = None
return self.__pkgs_vcsinfo