Commit 2b2bab2e authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-repack-rpm: fix packing links to dirs

parent 86fcab23
...@@ -76,7 +76,7 @@ __fix_spec() ...@@ -76,7 +76,7 @@ __fix_spec()
# replace dir "/path/dir" -> %dir /path/dir # replace dir "/path/dir" -> %dir /path/dir
grep '^"/' $spec | sed -e 's|^"\(/.*\)"$|\1|' | while read i ; do grep '^"/' $spec | sed -e 's|^"\(/.*\)"$|\1|' | while read i ; do
# add dir as %dir in the filelist # add dir as %dir in the filelist
if [ -d "$buildroot$i" ] ; then if [ -d "$buildroot$i" ] && [ ! -L "$buildroot$i" ] ; then
subst "s|^\(\"$i\"\)$|%dir \1|" $spec subst "s|^\(\"$i\"\)$|%dir \1|" $spec
#else #else
# subst 's|^\("'$i'"\)$|\1|' $spec # subst 's|^\("'$i'"\)$|\1|' $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