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
c9e0294e
Commit
c9e0294e
authored
Mar 18, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: add assure_exists_erc and use it
parent
aa9506af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
epm-checkpkg
bin/epm-checkpkg
+1
-1
epm-repack
bin/epm-repack
+3
-3
epm-sh-functions
bin/epm-sh-functions
+7
-0
No files found.
bin/epm-checkpkg
View file @
c9e0294e
...
...
@@ -53,7 +53,7 @@ check_pkg_integrity()
true
;;
*
)
assure_exists
erc
||
epm ei erc
||
fatal
"erc is not available. can't check the package"
assure_exists
_erc
docmd erc
test
"
$PKG
"
&&
return
;;
esac
...
...
bin/epm-repack
View file @
c9e0294e
...
...
@@ -250,7 +250,7 @@ __prepare_source_package()
[
-x
"
$alpkg
"
]
||
docmd
chmod
u+x
$verbose
"
$alpkg
"
./
$alpkg
--appimage-extract
||
fatal
alpkg
=
$PKGNAME
-
$VERSION
.tar
assure_exists
erc
||
epm ei erc
||
fatal
assure_exists
_erc
# make a tar for alien
a
=
erc a
$alpkg
squashfs-root
return
...
...
@@ -259,7 +259,7 @@ __prepare_source_package()
__set_version_pkgname
$alpkg
if
[
-n
"
$VERSION
"
]
;
then
# TODO: don't use erc for detect type? then we potentially can skip install it
assure_exists
erc
||
epm ei erc
||
fatal
assure_exists
_erc
pkgtype
=
"
$(
a
=
erc
type
$alpkg
)
"
local
newalpkg
newalpkg
=
$PKGNAME
-
$VERSION
.
$pkgtype
...
...
@@ -273,7 +273,7 @@ __prepare_source_package()
# converts directly unsupported formats
newalpkg
=
$PKGNAME
-
$VERSION
.tar
#newalpkg=$(basename $alpkg .$pkgtype).tar
assure_exists
erc
||
epm ei erc
||
fatal
assure_exists
_erc
a
=
erc repack
$alpkg
$newalpkg
||
fatal
fi
if
[
"
$alpkg
"
!=
"
$newalpkg
"
]
;
then
...
...
bin/epm-sh-functions
View file @
c9e0294e
...
...
@@ -496,6 +496,13 @@ assure_exists()
(
direct
=
''
epm_assure
"
$1
"
$package
$3
)
||
fatal
"Can't assure in '
$1
' command from
$package$textpackage
package"
}
assure_exists_erc
()
{
load_helper epm-assure
local
package
=
"erc"
(
direct
=
''
epm_assure
"
$package
"
)
||
epm ei erc
||
fatal
"erc is not available to install."
}
# will replaced within disabled_eget in packaged version
eget
()
{
...
...
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