diff options
author | Gui Chen <gui.chen@intel.com> | 2013-06-25 05:19:54 -0400 |
---|---|---|
committer | Gui Chen <gui.chen@intel.com> | 2013-06-25 05:19:54 -0400 |
commit | fd149df8ed1742d951d7b46605b144d2df206c75 (patch) | |
tree | 4390fdaa5a13048f22d9edad514522c6063f7982 /plugins/backend | |
parent | d4ee528a8578afebb26ae21d57b1791361acc1ee (diff) | |
download | mic-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-x | plugins/backend/zypppkgmgr.py | 6 |
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 |