projects
/
services
/
python-snapdiff.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48e3e41
)
Fix rpm package version parsing in images
author
Lingchao Xin
<lingchaox.xin@intel.com>
Thu, 23 Jan 2014 08:52:18 +0000
(16:52 +0800)
committer
Lingchao Xin
<lingchaox.xin@intel.com>
Thu, 23 Jan 2014 08:52:18 +0000
(16:52 +0800)
Change-Id: I9b4ea79b90486bcdebb46ceca29a4f7f77c42f9c
snapdiff/image.py
patch
|
blob
|
history
diff --git
a/snapdiff/image.py
b/snapdiff/image.py
index 32dfbe4346f34e0ccb80103dfd90ac2a0ea1e3f0..e8ce79af0f2bb7d5f451d71cc563000aa528064a 100644
(file)
--- a/
snapdiff/image.py
+++ b/
snapdiff/image.py
@@
-157,9
+157,8
@@
def packages(url):
package_info = JsonDict()
package_info.name = name
package_info.version = JsonDict()
- ver, epoch_rel = version.split('-')
- epoch, rel = epoch_rel.split('.')
- package_info.version.epoch = epoch
+ ver, rel = version.split('-')
+ package_info.version.epoch = 0 # we can't get epoch, so give 0.
package_info.version.ver = ver
package_info.version.rel = rel
# maybe it occurs no vcs tag or vcs tag is 'None' not None in