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
85f32bc6
Commit
85f32bc6
authored
Mar 20, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm pack: improve
parent
1546c5e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
epm-pack
bin/epm-pack
+9
-7
No files found.
bin/epm-pack
View file @
85f32bc6
...
...
@@ -38,18 +38,19 @@ __epm_pack()
#TODO: --verbose support
set_sudo
export
SUDO
$repackcode
$tarname
$filefortarname
||
fatal
returntarname
=
"
$(
cat
$filefortarname
)
"
$repackcode
"
$tarname
"
"
$filefortarname
"
||
fatal
returntarname
=
"
$(
cat
"
$filefortarname
"
)
"
||
fatal
"pack script
$repackcode
didn't set tarname
"
if
[
-n
"
$download_only
"
]
;
then
cp
$returntarname
.
return
fi
[
-s
"
$returntarname
"
]
||
fatal
"pack script
$repackcode
didn't return tarname"
mv
$returntarname
$tmpdir
/
||
fatal
cd
$tmpdir
||
fatal
epm repack
--quiet
"
$(
basename
"
$returntarname
"
)
"
docmd
epm repack
--quiet
"
$(
basename
"
$returntarname
"
)
"
packed_pkgs
=
"
$tmpdir
/
$(
echo
*
.rpm
)
"
}
...
...
@@ -89,16 +90,17 @@ epm_pack()
pkg_urls
=
"
$tarname
"
load_helper epm-download
__handle_pkg_urls_to_install
tarname
=
"
$pkg_files
"
# drop spaces
tarname
=
"
$(
echo
$pkg_files
)
"
elif
[
-d
"
$tarname
"
]
;
then
fatal
"FIXME"
fatal
"FIXME
: implement packing of the dir
$tarname
?
"
tarname
=
''
fi
if
__epm_pack
$packname
$tarname
&&
[
-n
"
$packed_pkgs
"
]
;
then
if
__epm_pack
"
$packname
"
"
$tarname
"
&&
[
-n
"
$packed_pkgs
"
]
;
then
#FIXME
if
[
-n
"
$install
"
]
;
then
epm
install
$packed_pkgs
docmd
epm
install
$packed_pkgs
return
fi
...
...
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