Commit 92e8649c authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbs: use cp instead mv for correct group owner (forced by sgid)

parent b10ab0f2
...@@ -174,7 +174,10 @@ rpmbs_copying_built() ...@@ -174,7 +174,10 @@ rpmbs_copying_built()
docmd scp $LISTBUILT $ETERDESTSRPM && docmd rm -fv $LISTBUILT || echog "Error during copying" docmd scp $LISTBUILT $ETERDESTSRPM && docmd rm -fv $LISTBUILT || echog "Error during copying"
else else
mkdir -p $ETERDESTSRPM || echog "Error mkdir $ETERDESTSRPM" mkdir -p $ETERDESTSRPM || echog "Error mkdir $ETERDESTSRPM"
chmod ug+rw $LISTBUILT
# Lav disable 06.12.2012: use umask instead
#chmod ug+rw $LISTBUILT
# Publish tarball if target dir is exist # Publish tarball if target dir is exist
if [ -d "$ETERDESTSRPM/tarball" ] ; then if [ -d "$ETERDESTSRPM/tarball" ] ; then
echog "There is tarball dir exists. Extract tarball for other build system compatibility." echog "There is tarball dir exists. Extract tarball for other build system compatibility."
...@@ -182,7 +185,10 @@ rpmbs_copying_built() ...@@ -182,7 +185,10 @@ rpmbs_copying_built()
extract_tarball_to_dest $i $ETERDESTSRPM/tarball extract_tarball_to_dest $i $ETERDESTSRPM/tarball
done done
fi fi
mv -fv $LISTBUILT $ETERDESTSRPM || echog "Error during copying"
# Note: use cp for apply directory group (forced by sgid on dir)
cp -fv $LISTBUILT $ETERDESTSRPM || echog "Error during copying"
rm -f $LISTBUILT
# FIXME: update only for published file # FIXME: update only for published file
#make_md5sum "$ETERDESTSRPM" #make_md5sum "$ETERDESTSRPM"
fi fi
......
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