Commit d9934aeb authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-repack-rpm: call generic-default if there is no special repack script

parent 77c18600
......@@ -66,6 +66,11 @@ __fix_spec()
}
has_repack_script()
{
local repackcode="$EPM_REPACK_SCRIPTS_DIR/$1.sh"
[ -s "$repackcode" ]
}
# args: pkgname buildroot spec
__apply_fix_code()
......@@ -182,6 +187,9 @@ __epm_repack_to_rpm()
__apply_fix_code "generic" $buildroot $spec $pkgname $abspkg
__apply_fix_code "generic-$SUBGENERIC" $buildroot $spec $pkgname $abspkg
__apply_fix_code $pkgname $buildroot $spec $pkgname $abspkg
if ! has_repack_script $pkgname ; then
__apply_fix_code "generic-default" $buildroot $spec $pkgname $abspkg
fi
cd - >/dev/null
TARGETARCH=$(epm print info -a | sed -e 's|^x86$|i586|')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment