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
72210264
Commit
72210264
authored
Apr 17, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm print contructname: improve delimiter issue
parent
2522eb59
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
epm-print
bin/epm-print
+5
-6
No files found.
bin/epm-print
View file @
72210264
...
...
@@ -270,7 +270,7 @@ compare_version()
}
# construct package file name.
# name version [arch] [pkgtype] [ds]
# name version [arch] [pkgtype] [ds]
[pds]
construct_name
()
{
local
name
=
"
$1
"
...
...
@@ -278,13 +278,12 @@ construct_name()
local arch
=
"
$3
"
local
pkgtype
=
"
$4
"
local
ds
=
"
$5
"
local
pds
local
pds
=
"
$6
"
[
-n
"
$arch
"
]
||
arch
=
"
$(
$DISTRVENDOR
--distro-arch
)
"
[
-n
"
$pkgtype
"
]
||
pkgtype
=
"
$PKGFORMAT
"
[
-n
"
$ds
"
]
||
ds
=
$(
get_pkg_name_delimiter
$pkgtype
)
pds
=
"
$ds
"
[
"
$pds
"
=
"-"
]
&&
pds
=
"."
[
-z
"
$pds
"
]
&&
pds
=
"
$ds
"
&&
[
"
$pds
"
=
"-"
]
&&
pds
=
"."
[
-n
"
$version
"
]
&&
version
=
"
$ds$version
"
echo
"
${
name
}${
version
}${
pds
}
$arch
.
$pkgtype
"
}
...
...
@@ -307,7 +306,7 @@ cat <<EOF
epm print specname from filename NN print spec filename for the source package file
epm print binpkgfilelist in DIR for NN list binary package(s) filename(s) from DIR for the source package file
epm print compare [package] version N1 N2 compare (package) versions and print -1 (N1 < N2), 0 (N1 == N2), 1 (N1 > N2)
epm print constructname <name> <version> [arch] [
pkgtype
] print distro dependend package filename from args name version arch pkgtype
epm print constructname <name> <version> [arch] [
pkgtype] [delimiter1] [delimiter2
] print distro dependend package filename from args name version arch pkgtype
EOF
}
...
...
@@ -333,7 +332,7 @@ epm_print()
case
"
$WHAT
"
in
""
)
fatal
"Use epm print help to get help."
fatal
"Use epm print
--
help to get help."
;;
"-h"
|
"--help"
|
"help"
)
epm_print_help
...
...
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