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
48082b5d
Commit
48082b5d
authored
Aug 26, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack-rpm: try install eepm-rpm-build
parent
68d0c82b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
epm-repack-rpm
bin/epm-repack-rpm
+22
-5
No files found.
bin/epm-repack-rpm
View file @
48082b5d
...
...
@@ -104,6 +104,25 @@ EOF
remove_on_exit
"
$HOME
/.rpmmacros"
}
# will set RPMBUILD
__try_install_eepm_rpmbuild
()
{
RPMBUILD
=
/usr/bin/rpmbuild
[
-x
"
$RPMBUILD
"
]
&&
return
RPMBUILD
=
/usr/bin/eepm-rpmbuild
if
[
!
-x
$RPMBUILD
]
;
then
epm
install
eepm-rpm-build
fi
if
[
-x
$RPMBUILD
]
;
then
warning
"will use eepm-rpmbuild for rpm packing"
export
EPM_RPMBUILD
=
$RPMBUILD
return
fi
RPMBUILD
=
/usr/bin/rpmbuild
}
# will fill repacked_pkgs var
__epm_repack_to_rpm
()
...
...
@@ -113,12 +132,10 @@ __epm_repack_to_rpm()
# Note: install epm-repack for static (package based) dependencies
assure_exists alien
||
fatal
RPMBUILD
=
/usr/bin/eepm-rpmbuild
# will set RPMBUILD
__try_install_eepm_rpmbuild
if
[
-x
$RPMBUILD
]
;
then
warning
"will use eepm-rpmbuild for rpm packing"
export
EPM_RPMBUILD
=
$RPMBUILD
else
if
[
!
-x
$RPMBUILD
]
;
then
RPMBUILD
=
/usr/bin/rpmbuild
# TODO: check for all systems
case
$PKGFORMAT
in
...
...
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