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
c3af80dc
Commit
c3af80dc
authored
Mar 30, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play common.sh: small refactoring
parent
ea91cd95
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
18 deletions
+20
-18
common.sh
play.d/common.sh
+20
-18
No files found.
play.d/common.sh
View file @
c3af80dc
...
...
@@ -411,19 +411,27 @@ case "$1" in
;;
esac
# set PKGNAME to $BASEPKGNAME-$VERSION if $VERSION is found in PRODUCTALT
[
-n
"
$PRODUCTALT
"
]
&&
check_alternative_pkgname
[
-n
"
$PKGNAME
"
]
||
fatal
"Can't get PKGNAME"
case
"
$1
"
in
"--package-name"
)
#[ -n "$DESCRIPTION" ] || exit 0
echo
"
$PKGNAME
"
exit
;;
"--installed"
)
#epm installed $PKGNAME
is_repacked_packages
$PKGNAME
exit
;;
esac
.
$(
dirname
$0
)
/common-outformat.sh
check_tty
pkgtext
=
"package"
pkgistext
=
"package is"
epm tool estrlist has_space
"
$PKGNAME
"
2>/dev/null
&&
pkgtext
=
"packages"
&&
pkgistext
=
"packages are"
# set PKGNAME to $BASEPKGNAME-$VERSION if $VERSION is found in PRODUCTALT
[
-n
"
$PRODUCTALT
"
]
&&
check_alternative_pkgname
[
-n
"
$PKGNAME
"
]
||
fatal
"Can't get PKGNAME"
case
"
$1
"
in
"--remove"
)
#is_repacked_packages || exit 0
...
...
@@ -439,21 +447,15 @@ case "$1" in
[
-n
"
$URL
"
]
&&
echo
"Url:
$URL
"
exit
;;
"--package-name"
)
#[ -n "$DESCRIPTION" ] || exit 0
echo
"
$PKGNAME
"
exit
;;
"--installed"
)
#epm installed $PKGNAME
is_repacked_packages
$PKGNAME
exit
;;
"--installed-version"
)
epm print version
for
package
$PKGNAME
|
head
-n1
exit
;;
"--update"
)
pkgtext
=
"package"
pkgistext
=
"package is"
epm tool estrlist has_space
"
$PKGNAME
"
2>/dev/null
&&
pkgtext
=
"packages"
&&
pkgistext
=
"packages are"
if
!
epm installed
$PKGNAME
;
then
echo
"Skipping update of
$PKGNAME
(
$pkgistext
not installed)"
exit
...
...
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