Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
apk-tools
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
41
Issues
41
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
apk-tools
Commits
ee5ce728
Commit
ee5ce728
authored
Jul 22, 2016
by
A. Wilcox
Committed by
William Pitcock
May 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version: consider pkg-rX and pkg to be the same version
parent
18f7aa9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
version.c
src/version.c
+5
-0
No files found.
src/version.c
View file @
ee5ce728
...
...
@@ -218,6 +218,11 @@ int apk_version_compare_blob(apk_blob_t a, apk_blob_t b)
if
(
at
==
bt
)
return
APK_VERSION_EQUAL
;
/* if only difference is pkgrev, they are equal. */
if
((
at
==
TOKEN_REVISION_NO
&&
bt
==
TOKEN_END
)
||
(
at
==
TOKEN_END
&&
bt
==
TOKEN_REVISION_NO
))
return
APK_VERSION_EQUAL
;
/* leading version components and their values are equal,
* now the non-terminating version is greater unless it's a suffix
* indicating pre-release */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment