contrib/makerepo.sh: fix script for fedpkg 1.44
If the user of the script still uses fedpkg 1.44 the script fails because the -build directory doesn't exist. Now it was tested in both versions.
This commit is contained in:

committed by
Íñigo Huguet

parent
63b81d893e
commit
b281ae0c22
@@ -265,9 +265,11 @@ detect_dirname() {
|
|||||||
# At some point FEDPKG changed the behavior of "prep" command
|
# At some point FEDPKG changed the behavior of "prep" command
|
||||||
# now it generates the directory with "-build" suffix and the
|
# now it generates the directory with "-build" suffix and the
|
||||||
# real directory inside. We just move it out.
|
# real directory inside. We just move it out.
|
||||||
rm -rf $D
|
if [ -d "$D-build" ]; then
|
||||||
mv $D-build/$D .
|
rm -rf "$D"
|
||||||
rm -rf $D-build
|
mv "$D-build/$D" .
|
||||||
|
rm -rf "$D-build"
|
||||||
|
fi
|
||||||
[[ -d "$D" ]] && DIRS=("${DIRS[@]}" "$D")
|
[[ -d "$D" ]] && DIRS=("${DIRS[@]}" "$D")
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user