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
01290dd2
Commit
01290dd2
authored
Nov 12, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack: EPM_REPACK_SCRIPT will override repack rule (eterbug #18445)
parent
90f8eac6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
epm-repack-rpm
bin/epm-repack-rpm
+18
-6
No files found.
bin/epm-repack-rpm
View file @
01290dd2
...
@@ -17,16 +17,25 @@
...
@@ -17,16 +17,25 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# args: pkgname/repackscript buildroot spec
get_repack_script
()
{
local
repackcode
=
"
$1
"
is_abs_path
"
$repackcode
"
||
repackcode
=
"
$EPM_REPACK_SCRIPTS_DIR
/
$1
.sh"
echo
"
$repackcode
"
}
# args: pkgname/repackscript buildroot spec
has_repack_script
()
has_repack_script
()
{
{
local
repackcode
=
"
$EPM_REPACK_SCRIPTS_DIR
/
$1
.sh"
[
-s
"
$(
get_repack_script
"
$1
"
)
"
]
[
-s
"
$repackcode
"
]
}
}
# args: pkgname buildroot spec
# args: pkgname
/repackscript
buildroot spec
__apply_fix_code
()
__apply_fix_code
()
{
{
local
repackcode
=
"
$
EPM_REPACK_SCRIPTS_DIR
/
$1
.sh
"
local
repackcode
=
"
$
(
get_repack_script
"
$1
"
)
"
[
-s
"
$repackcode
"
]
||
return
0
[
-s
"
$repackcode
"
]
||
return
0
[
-f
"
$repackcode
.rpmnew"
]
&&
warning
'There is .rpmnew file(s) in $EPM_REPACK_SCRIPTS_DIR dir. The pack script can be outdated.'
[
-f
"
$repackcode
.rpmnew"
]
&&
warning
'There is .rpmnew file(s) in $EPM_REPACK_SCRIPTS_DIR dir. The pack script can be outdated.'
...
@@ -182,10 +191,13 @@ __epm_repack_to_rpm()
...
@@ -182,10 +191,13 @@ __epm_repack_to_rpm()
# run generic scripts and repack script for the pkg
# run generic scripts and repack script for the pkg
cd
$buildroot
||
fatal
cd
$buildroot
||
fatal
local
repackscript
=
"
$pkgname
"
[
-n
"
$EPM_REPACK_SCRIPT
"
]
&&
repackscript
=
"
$EPM_REPACK_SCRIPT
"
__apply_fix_code
"generic"
$buildroot
$spec
$pkgname
$abspkg
$SUBGENERIC
__apply_fix_code
"generic"
$buildroot
$spec
$pkgname
$abspkg
$SUBGENERIC
__apply_fix_code
"generic-
$SUBGENERIC
"
$buildroot
$spec
$pkgname
$abspkg
__apply_fix_code
"generic-
$SUBGENERIC
"
$buildroot
$spec
$pkgname
$abspkg
__apply_fix_code
$
pkgname
$buildroot
$spec
$pkgname
$abspkg
__apply_fix_code
$
repackscript
$buildroot
$spec
$pkgname
$abspkg
if
!
has_repack_script
$
pkgname
;
then
if
!
has_repack_script
$
repackscript
;
then
__apply_fix_code
"generic-default"
$buildroot
$spec
$pkgname
$abspkg
__apply_fix_code
"generic-default"
$buildroot
$spec
$pkgname
$abspkg
fi
fi
__apply_fix_code
"generic-post"
$buildroot
$spec
$pkgname
$abspkg
__apply_fix_code
"generic-post"
$buildroot
$spec
$pkgname
$abspkg
...
...
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