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
Vladislav
eepm
Commits
7b225cb2
Commit
7b225cb2
authored
May 13, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: modify PATH only for subprocess
parent
3c6a3311
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
12 deletions
+10
-12
epm
bin/epm
+0
-2
epm-assure
bin/epm-assure
+2
-1
epm-pack
bin/epm-pack
+2
-4
epm-play
bin/epm-play
+4
-3
epm-repack-rpm
bin/epm-repack-rpm
+2
-2
No files found.
bin/epm
View file @
7b225cb2
...
...
@@ -57,8 +57,6 @@ load_helper()
load_helper epm-sh-functions
#PATH=$PATH:/sbin:/usr/sbin
set_pm_type
check_tty
...
...
bin/epm-assure
View file @
7b225cb2
...
...
@@ -19,7 +19,8 @@
__check_command_in_path
()
{
PATH
=
$PATH
:/sbin:/usr/sbin print_command_path
"
$1
"
# with hack for sudo case
(
PATH
=
$PATH
:/sbin:/usr/sbin print_command_path
"
$1
"
)
}
# returns TRUE if package version is omitted, or package is not installed, or version is too old
...
...
bin/epm-pack
View file @
7b225cb2
...
...
@@ -42,13 +42,11 @@ __epm_pack()
set_sudo
export
SUDO
# TODO: inside () ?
export
PATH
=
$PROGDIR
:
$PATH
[
"
$PROGDIR
"
=
"/usr/bin"
]
&&
SCPATH
=
"
$PATH
"
||
SCPATH
=
"
$PROGDIR
:
$PATH
"
local
bashopt
=
''
[
-n
"
$verbose
"
]
&&
bashopt
=
'-x'
#info "Running $($script --description 2>/dev/null) ..."
(
unset
EPMCURDIR
;
docmd
$CMDSHELL
$bashopt
$repackcode
"
$tarname
"
"
$filefortarname
"
"
$packversion
"
)
||
fatal
(
unset
EPMCURDIR
;
export
PATH
=
$SCPATH
;
docmd
$CMDSHELL
$bashopt
$repackcode
"
$tarname
"
"
$filefortarname
"
"
$packversion
"
)
||
fatal
returntarname
=
"
$(
cat
"
$filefortarname
"
)
"
||
fatal
"pack script
$repackcode
didn't set tarname"
[
-s
"
$returntarname
"
]
||
fatal
"pack script
$repackcode
return unexist
$returntarname
file"
...
...
bin/epm-play
View file @
7b225cb2
...
...
@@ -55,7 +55,8 @@ __run_script()
[
-f
"
$script
.rpmnew"
]
&&
warning
"There is .rpmnew file(s) in
$psdir
dir. The play script can be outdated."
shift
(
unset
EPMCURDIR
;
export
PATH
=
$PROGDIR
:
$PATH
;
$script
"
$@
"
)
[
"
$PROGDIR
"
=
"/usr/bin"
]
&&
SCPATH
=
"
$PATH
"
||
SCPATH
=
"
$PROGDIR
:
$PATH
"
(
unset
EPMCURDIR
;
export
PATH
=
$SCPATH
;
$script
"
$@
"
)
return
}
...
...
@@ -145,7 +146,6 @@ __epm_play_run()
local
script
=
"
$psdir
/
$1
.sh"
shift
export
PATH
=
$PROGDIR
:
$PATH
set_sudo
export
SUDO
...
...
@@ -158,7 +158,8 @@ __epm_play_run()
local
bashopt
=
''
[
-n
"
$verbose
"
]
&&
bashopt
=
'-x'
#info "Running $($script --description 2>/dev/null) ..."
docmd
$CMDSHELL
$bashopt
$script
"
$@
"
[
"
$PROGDIR
"
=
"/usr/bin"
]
&&
SCPATH
=
"
$PATH
"
||
SCPATH
=
"
$PROGDIR
:
$PATH
"
(
export
EPM_OPTIONS
=
"
$EPM_OPTIONS
$addopt
"
export
PATH
=
$SCPATH
;
docmd
$CMDSHELL
$bashopt
$script
"
$@
"
)
}
__epm_play_list_installed
()
...
...
bin/epm-repack-rpm
View file @
7b225cb2
...
...
@@ -82,10 +82,10 @@ __apply_fix_code()
[
-f
"
$repackcode
.rpmnew"
]
&&
warning
"There is .rpmnew file(s) in
$EPM_REPACK_SCRIPTS_DIR
dir. The pack script can be outdated."
shift
export
PATH
=
$PROGDIR
:
$PATH
[
"
$PROGDIR
"
=
"/usr/bin"
]
&&
SCPATH
=
"
$PATH
"
||
SCPATH
=
"
$PROGDIR
:
$PATH
"
local
bashopt
=
''
[
-n
"
$verbose
"
]
&&
bashopt
=
'-x'
(
unset
EPMCURDIR
;
docmd
$CMDSHELL
$bashopt
$repackcode
"
$1
"
"
$2
"
"
$3
"
"
$4
"
)
||
fatal
"There is an error from
$repackcode
script"
(
unset
EPMCURDIR
;
export
PATH
=
$SCPATH
;
docmd
$CMDSHELL
$bashopt
$repackcode
"
$1
"
"
$2
"
"
$3
"
"
$4
"
)
||
fatal
"There is an error from
$repackcode
script"
}
__create_rpmmacros
()
...
...
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