projects
/
tools
/
mic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4ee528
)
fix rpm header not including 'VCS' tag
author
Gui Chen
<gui.chen@intel.com>
Tue, 25 Jun 2013 09:19:54 +0000
(
05:19
-0400)
committer
Gui Chen
<gui.chen@intel.com>
Tue, 25 Jun 2013 09:19:54 +0000
(
05:19
-0400)
Signed-off-by: Gui Chen <gui.chen@intel.com>
plugins/backend/zypppkgmgr.py
patch
|
blob
|
history
diff --git
a/plugins/backend/zypppkgmgr.py
b/plugins/backend/zypppkgmgr.py
index c7608598324d89b989a18146c88478aec161c83f..7ee83b6ba74bcce23d4d454125f6a9139027149c 100755
(executable)
--- 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