Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
edd8e5ad
Commit
edd8e5ad
authored
Jul 15, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm print compare version: implement via lua:print for non ALT rpm)
parent
84dd9d6f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
epm-print
bin/epm-print
+6
-1
No files found.
bin/epm-print
View file @
edd8e5ad
...
...
@@ -259,12 +259,17 @@ print_srcpkgname()
rpm_query_package_field
"sourcerpm"
"
$@
"
}
# https://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
compare_version
()
{
case
$PMTYPE
in
*
-rpm
)
is_command rpmevrcmp
||
fatal
"rpmevrcmp exists in ALT Linux only"
# rpmevrcmp exists in ALT Linux only
if
is_command rpmevrcmp
;
then
a
=
rpmevrcmp
"
$@
"
else
a
=
rpm
--eval
"%{lua:print(rpm.vercmp('
$1
', '
$2
'))}"
fi
;;
*
-dpkg
)
a
=
dpkg
--compare-versions
"
$1
"
lt
"
$2
"
&&
echo
"-1"
&&
return
...
...
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