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
5917d078
Commit
5917d078
authored
1 year ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve remove_on_exit()
parent
d6352add
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
11 deletions
+5
-11
epm-install
bin/epm-install
+0
-9
epm-repack
bin/epm-repack
+0
-1
epm-sh-functions
bin/epm-sh-functions
+5
-1
No files found.
bin/epm-install
View file @
5917d078
...
...
@@ -410,8 +410,6 @@ epm_install_files()
if
__epm_repack_if_needed
$files
;
then
[
-n
"
$repacked_pkgs
"
]
||
fatal
"Can't convert
$files
"
files
=
"
$repacked_pkgs
"
# TODO
#__epm_remove_tmp_files
fi
if
[
-n
"
$save_only
"
]
;
then
...
...
@@ -465,8 +463,6 @@ epm_install_files()
if
__epm_repack_if_needed
$files
;
then
[
-n
"
$repacked_pkgs
"
]
||
fatal
"Can't convert
$files
"
files
=
"
$repacked_pkgs
"
# TODO
#__epm_remove_tmp_files
fi
if
[
-n
"
$save_only
"
]
;
then
...
...
@@ -667,9 +663,4 @@ epm_install()
fi
epm_install_files
$files
local
RETVAL
=
$?
__epm_remove_tmp_files
return
$RETVAL
}
This diff is collapsed.
Click to expand it.
bin/epm-repack
View file @
5917d078
...
...
@@ -247,5 +247,4 @@ epm_repack()
fi
fi
__epm_remove_tmp_files
}
This diff is collapsed.
Click to expand it.
bin/epm-sh-functions
View file @
5917d078
...
...
@@ -732,6 +732,7 @@ get_pkg_name_delimiter()
# used via remove_on_exit
__epm_remove_tmp_files
()
{
trap
"-"
EXIT
[
-n
"
$DEBUG
"
]
&&
return
0
if
[
-n
"
$to_clean_tmp_dirs
"
]
;
then
...
...
@@ -753,7 +754,10 @@ __epm_remove_tmp_files()
remove_on_exit
()
{
trap
"__epm_remove_tmp_files"
EXIT
if
[
-z
"
$set_remove_on_exit
"
]
;
then
trap
"__epm_remove_tmp_files"
EXIT
set_remove_on_exit
=
1
fi
while
[
-n
"
$1
"
]
;
do
if
[
-d
"
$1
"
]
;
then
to_clean_tmp_dirs
=
"
$to_clean_tmp_dirs
...
...
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