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
Vladislav
eepm
Commits
e786a493
Commit
e786a493
authored
Jul 22, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: speedup --description, --product-alternatives
parent
4dd0e63a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
common.sh
play.d/common.sh
+17
-13
No files found.
play.d/common.sh
View file @
e786a493
...
...
@@ -46,10 +46,6 @@ is_command()
}
.
$(
dirname
$0
)
/common-outformat.sh
check_tty
#__showcmd_shifted()
#{
# local s="$1"
...
...
@@ -217,6 +213,23 @@ is_repacked_package()
}
case
"
$1
"
in
"--description"
)
is_supported_arch
"
$2
"
||
exit
0
echo
"
$DESCRIPTION
"
exit
;;
"--product-alternatives"
)
print_product_alt
$PRODUCTALT
exit
;;
esac
.
$(
dirname
$0
)
/common-outformat.sh
check_tty
# set PKGNAME to $BASEPKGNAME-$VERSION if $VERSION is found in PRODUCTALT
[
-n
"
$PRODUCTALT
"
]
&&
check_alternative_pkgname
...
...
@@ -241,10 +254,6 @@ case "$1" in
echo
"
$PKGNAME
"
exit
;;
"--product-alternatives"
)
print_product_alt
$PRODUCTALT
exit
;;
"--installed"
)
#epm installed $PKGNAME
is_repacked_package
$PKGNAME
...
...
@@ -254,11 +263,6 @@ case "$1" in
epm print version
for
package
$PKGNAME
exit
;;
"--description"
)
is_supported_arch
"
$2
"
||
exit
0
echo
"
$DESCRIPTION
"
exit
;;
"--update"
)
if
!
epm installed
$PKGNAME
;
then
echo
"Skipping update of
$PKGNAME
(package is not installed)"
...
...
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