projects
/
platform
/
core
/
appfw
/
pkgmgr-info.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8ca739
)
Fix the bug of version comparison logic
78/116078/1
author
jongmyeongko
<jongmyeong.ko@samsung.com>
Thu, 23 Feb 2017 01:06:04 +0000
(10:06 +0900)
committer
jongmyeong ko
<jongmyeong.ko@samsung.com>
Thu, 23 Feb 2017 01:26:56 +0000
(17:26 -0800)
The minor is changed as zero.
Change-Id: I27b0930fcab5f539695656939ca3889451e0a857
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
(cherry picked from commit
bdbf6623405885c98bcc8feb4223be3bac8f01e1
)
src/pkgmgrinfo_pkginfo.c
patch
|
blob
|
history
diff --git
a/src/pkgmgrinfo_pkginfo.c
b/src/pkgmgrinfo_pkginfo.c
index
e955d53
..
ea64f4b
100644
(file)
--- a/
src/pkgmgrinfo_pkginfo.c
+++ b/
src/pkgmgrinfo_pkginfo.c
@@
-1924,7
+1924,7
@@
int __compare_package_version(const char *version, int *major,
*major = atoi(major_str);
*minor = atoi(minor_str);
*macro = 0;
- *
minor
= 0;
+ *
nano
= 0;
macro_str = strtok_r(NULL, ".", &save_str);
if (macro_str == NULL) {
_LOGD("macro version is NULL");