Commit a1505da3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: fix spec changing in move_to_opt

parent b798620e
......@@ -178,7 +178,12 @@ move_to_opt()
[ -d "$BUILDROOT$rdir" ] || return 1 #fatal "Can't resolve $from in $BUILDROOT"
mv "$BUILDROOT$rdir"/* "$BUILDROOT$PRODUCTDIR/"
subst "s|$rdir|$PRODUCTDIR|g" $SPEC
subst "s|%dir $rdir|%dir $PRODUCTDIR|" $SPEC
subst "s|%dir \"$rdir|%dir \"$PRODUCTDIR|" $SPEC
subst "s|\(%config.*\) $rdir|\1 $PRODUCTDIR|" $SPEC
subst "s|\(%config.*\) \"$rdir|\1 \"$PRODUCTDIR|" $SPEC
subst "s|^$rdir|$PRODUCTDIR|" $SPEC
subst "s|^\"$rdir|\"$PRODUCTDIR|" $SPEC
}
# remove absolute path from desktop file
......
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