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
02dff226
Commit
02dff226
authored
1 year ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play.d/common.sh: add is_repacked_package()
parent
39b49610
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
common.sh
play.d/common.sh
+31
-1
No files found.
play.d/common.sh
View file @
02dff226
...
...
@@ -162,8 +162,38 @@ epm()
{
#if [ "$1" = "tool" ] ; then
# __showcmd_shifted 1 "$@"
if
[
"
$1
"
!=
"print"
]
&&
[
"
$1
"
!=
"tool"
]
;
then
if
[
"
$1
"
!=
"print"
]
&&
[
"
$1
"
!=
"tool"
]
&&
[
"
$1
"
!=
"status"
]
;
then
showcmd
"
$(
basename
$EPM
)
$*
"
fi
$EPM
"
$@
"
}
is_repacked_package
()
{
local
pkg
=
"
$1
"
[
-n
"
$pkg
"
]
||
pkg
=
"
$PKGNAME
"
[
-n
"
$pkg
"
]
||
fatal
"is_repacked_package() is called without package name"
epm status
--installed
$pkg
||
return
0
# kind of hack
echo
"
$EPM_OPTIONS
"
|
grep
-q
--
"--force"
&&
return
if
epm status
--original
$pkg
;
then
echo
"Package
$pkg
is already installed from ALT repository."
return
1
fi
if
epm status
--thirdpart
$pkg
;
then
echo
"Package
$pkg
is already installed, packaged by vendor
$(
epm print field Distribution
for
$pkg
)
."
return
1
fi
if
!
epm status
--repacked
$pkg
;
then
echo
"Package
$pkg
is already installed (possible, manually packed)."
return
1
fi
return
0
}
This diff is collapsed.
Click to expand it.
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