Commit 6c30ae92 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix set last link

parent f83f8ccd
...@@ -47,12 +47,12 @@ get_etersoft_srpm_path() ...@@ -47,12 +47,12 @@ get_etersoft_srpm_path()
set_last_link() set_last_link()
{ {
local LASTNAME=$(readlink -f $1/../last)
# do not change last if testing publish # do not change last if testing publish
echo $1 | grep -q /testing/sources && return echo $1 | grep -q /testing/sources && return
# do not change last if unstable publish # do not change last if unstable publish
echo $1 | grep -q /unstable/sources && return echo $1 | grep -q /unstable/sources && return
# do not update last link if it is not exists # do not update last link if it is not exists
# test -L "$1/../last" || return # test -L "$1/../last" || return
rm -f "$1/../last" rm -f "$LASTNAME" && ln -s "$2" "$LASTNAME"
ln -s "$2" "$1/../last"
} }
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