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
143512ec
Commit
143512ec
authored
May 15, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm pack: rewrite and fix --repack logic
parent
e038ffe4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
epm-pack
bin/epm-pack
+18
-11
No files found.
bin/epm-pack
View file @
143512ec
...
...
@@ -73,19 +73,26 @@ __epm_pack()
# TODO: merge eepm.yaml here (common with $returntarname.eepm.yaml)
# add upstream_url: $URL too
# repack if needed
repacked_pkgs
=
''
# repack to our target
if
__epm_repack_if_needed
$returntarname
;
then
[
-n
"
$repacked_pkgs
"
]
||
fatal
"Can't repack
$returntarname
"
# if repack is forced or repack rule (not disabled) is exists
elif
[
-n
"
$repack
"
]
||
[
-z
"
$norepack
"
]
&&
__epm_have_repack_rule
$returntarname
;
then
__epm_repack
$returntarname
[
-n
"
$repacked_pkgs
"
]
||
fatal
"Can't repack
$returntarname
"
fi
# note: this repack related code here for follow reasons:
# * repack by default if we have repack rule
# * get repacked files
# * install (repacked) files
# the most replacement is epm repack [--install] or epm install [--repack]
# FIXME: check for every package would be more reliable
# by default
dorepack
=
'--repack'
# don't repack by default there is our pkg format
__epm_split_by_pkg_type
$PKGFORMAT
$returntarname
&&
dorepack
=
''
# repack if we have a repack rule for it
[
-z
"
$norepack
"
]
&&
__epm_have_repack_rule
$returntarname
&&
dorepack
=
'--repack'
# repack if forced
[
-n
"
$repack
"
]
&&
dorepack
=
'--repack'
local
pkgnames
if
[
-n
"
$repacked_pkgs
"
]
;
then
if
[
-n
"
$dorepack
"
]
;
then
__epm_repack
$returntarname
[
-n
"
$repacked_pkgs
"
]
||
fatal
"Can't repack
$returntarname
"
# remove packed file if we have repacked one
rm
-v
$returntarname
pkgnames
=
"
$repacked_pkgs
"
...
...
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