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
d5ef400c
Commit
d5ef400c
authored
May 15, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore all remove_on_exit for mktemp
parent
731dc91c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
0 deletions
+14
-0
epm-download
bin/epm-download
+2
-0
epm-repo-addkey
bin/epm-repo-addkey
+1
-0
epm-restore
bin/epm-restore
+8
-0
epm-sh-functions
bin/epm-sh-functions
+1
-0
epm-status
bin/epm-status
+2
-0
No files found.
bin/epm-download
View file @
d5ef400c
...
...
@@ -69,6 +69,7 @@ __download_pkg_urls()
for
url
in
$pkg_urls
;
do
local
tmppkg
tmppkg
=
"
$(
mktemp
-d
--tmpdir
=
$BIGTMPDIR
)
"
||
fatal
remove_on_exit
$tmppkg
docmd
chmod
$verbose
a+rX
$tmppkg
showcmd
cd
$tmppkg
cd
$tmppkg
||
fatal
...
...
@@ -149,6 +150,7 @@ __epm_print_url_alt_check()
shift
local
tm
tm
=
"
$(
mktemp
)
"
||
fatal
remove_on_exit
$tm
assure_exists curl
load_helper epm-site
quiet
=
1
...
...
bin/epm-repo-addkey
View file @
d5ef400c
...
...
@@ -26,6 +26,7 @@ __epm_get_file_from_url()
local
url
=
"
$1
"
local
tmpfile
tmpfile
=
$(
mktemp
)
||
fatal
remove_on_exit
$tmpfile
eget
-O
"
$tmpfile
"
"
$url
"
>
/dev/null
echo
"
$tmpfile
"
}
...
...
bin/epm-restore
View file @
d5ef400c
...
...
@@ -399,6 +399,7 @@ __epm_restore_meson()
if
[
-n
"
$dryrun
"
]
;
then
local
lt
lt
=
$(
mktemp
)
||
fatal
remove_on_exit
$lt
echo
__epm_restore_print_comment
"
$req_file
"
" dependency"
grep
"dependency("
$req_file
|
sed
-e
's|.*dependency(||'
-e
's|).*||'
-e
's|, required.*||'
-e
's|, version:||'
-e
"s|'||g"
>
$lt
...
...
@@ -410,6 +411,7 @@ __epm_restore_meson()
info
"Install requirements from
$req_file
..."
local
lt
lt
=
$(
mktemp
)
||
fatal
remove_on_exit
$lt
grep
"dependency("
$req_file
|
sed
-e
's|.*dependency(||'
-e
's|).*||'
-e
's|, required.*||'
-e
's|, version:||'
-e
"s|'||g"
>
$lt
ilist
=
"
$ilist
$(
__epm_print_meson_list
""
$lt
)
"
...
...
@@ -428,6 +430,7 @@ __epm_restore_npm()
if
[
-n
"
$dryrun
"
]
;
then
local
lt
lt
=
$(
mktemp
)
||
fatal
remove_on_exit
$lt
a
=
jq .dependencies <
$req_file
>
$lt
echo
__epm_restore_print_comment
"
$req_file
"
...
...
@@ -444,6 +447,7 @@ __epm_restore_npm()
info
"Install requirements from
$req_file
..."
local
lt
lt
=
$(
mktemp
)
||
fatal
remove_on_exit
$lt
a
=
jq .dependencies <
$req_file
>
$lt
ilist
=
"
$(
__epm_print_npm_list
""
$lt
)
"
a
=
jq .devDependencies <
$req_file
>
$lt
...
...
@@ -460,6 +464,7 @@ __epm_restore_perl()
if
[
-n
"
$dryrun
"
]
;
then
local
lt
lt
=
$(
mktemp
)
||
fatal
remove_on_exit
$lt
a
=
/usr/bin/perl
$req_file
PRINT_PREREQ
=
1
>
$lt
# all requirements will autodetected during packing, put it to the buildreq
echo
...
...
@@ -472,6 +477,7 @@ __epm_restore_perl()
info
"Install requirements from
$req_file
..."
local
lt
lt
=
$(
mktemp
)
||
exit
remove_on_exit
$lt
a
=
/usr/bin/perl
$req_file
PRINT_PREREQ
=
1
>
$lt
ilist
=
"
$(
__epm_print_perl_list
""
$lt
)
"
rm
-f
$lt
...
...
@@ -488,6 +494,7 @@ __epm_restore_perl_shyaml()
if
[
-n
"
$dryrun
"
]
;
then
local
lt
lt
=
$(
mktemp
)
||
fatal
remove_on_exit
$lt
a
=
shyaml get-value requires <
$req_file
>
$lt
# all requirements will autodetected during packing, put it to the buildreq
echo
...
...
@@ -505,6 +512,7 @@ __epm_restore_perl_shyaml()
info
"Install requirements from
$req_file
..."
local
lt
lt
=
$(
mktemp
)
||
fatal
remove_on_exit
$lt
a
=
shyaml get-value requires <
$req_file
>
$lt
ilist
=
"
$(
__epm_print_perl_list
""
$lt
)
"
a
=
shyaml get-value build_requires <
$req_file
>
$lt
...
...
bin/epm-sh-functions
View file @
d5ef400c
...
...
@@ -255,6 +255,7 @@ store_output()
{
# use make_temp_file from etersoft-build-utils
RC_STDOUT
=
"
$(
mktemp
)
"
||
fatal
remove_on_exit
$RC_STDOUT
local
CMDSTATUS
=
$RC_STDOUT
.pipestatus
echo
1
>
$CMDSTATUS
#RC_STDERR=$(mktemp)
...
...
bin/epm-status
View file @
d5ef400c
...
...
@@ -38,6 +38,7 @@ __epm_package_name_ok_scripts()
[
-s
"
$alf
"
]
||
return
1
[
-n
"
$name
"
]
||
return
1
local
tmpalf
=
$(
__convert_pkgallowscripts_to_regexp
"
$alf
"
)
remove_on_exit
$tmpalf
echo
"
$name
"
|
grep
-q
-f
$tmpalf
local
res
=
$?
rm
$tmpalf
...
...
@@ -61,6 +62,7 @@ __epm_vendor_ok_scripts()
[
-s
"
$alf
"
]
||
return
1
[
-n
"
$vendor
"
]
||
return
1
local
tmpalf
=
$(
__convert_pkgallowscripts_to_regexp
"
$alf
"
)
remove_on_exit
$tmpalf
echo
"
$vendor
"
|
grep
-q
-f
$tmpalf
local
res
=
$?
rm
$tmpalf
...
...
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