Commit 9b7d3929 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: set Distribution: EEPM, fix epm status

parent eb6b7ae2
......@@ -173,7 +173,9 @@ epm_status_thirdparty()
local distribution
distribution="$(epm print field Distribution for "$pkg" 2>/dev/null )"
echo "$distribution" | grep -q "^ALT" || return 0
echo "$distribution" | grep -q "^ALT" && return 1
echo "$distribution" | grep -q "^EEPM" && return 1
return 0
;;
*)
fatal "Unsupported $BASEDISTRNAME"
......
......@@ -70,6 +70,7 @@ set_rpm_field "Summary" "$PRODUCT (fixme: was empty Summary after alien)"
subst "s|^\(Version: .*\)~.*|\1|" $SPEC
# add our prefix to release
subst "s|^Release: |Release: epm1.repacked.|" $SPEC
set_rpm_field "Distribution" "EEPM"
subst "s|^\((Converted from a\) \(.*\) \(package.*\)|(Repacked from binary \2 package with $(epm --short --version))\n\1 \2 \3|" $SPEC
......
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