del abf-client

This commit is contained in:
Sergey Zhemoytel 2025-02-02 02:54:46 +03:00
parent 913e357104
commit 0554a7060e

View file

@ -52,7 +52,7 @@ runs:
- name: Update repo and pre-install
run: |
export REPOURL="http://newrepo:8080"
sudo urpmi --auto tar abf-console-client
sudo urpmi --auto tar
#sudo echo "/^abf-console-client/" >> /etc/urpmi/skip.list
sudo urpmi.addmedia personalold http://oldrepo:8090/rosa2016.1/x86_64/main/release/
sudo urpmi.update -fa
@ -65,37 +65,38 @@ runs:
run: |
abf fetch
# abfyml=.abf.yml
# if [ -e "${abfyml}" ]; then
# echo "parsing file '${abfyml}'"
# sed -ne '/^[Ss]ources\:.*$/,$p' ${abfyml} | \
# sed -rn '$G;s/^[\"'\''[:space:]]*([^[:space:]:\"'\'']+)[\"'\''[:space:]]*.*[\"'\''[:space:]]*([0-9a-fA-F]{40})[\"'\''[:space:]]*$/\1 \2/p' | \
# while read -r file sha; do
# echo -n "found entry: file=${file} ... "
# if [ -e "${file}" ]; then
# if echo "${sha} ${file}" | sha1sum -c --status; then
# echo "sha1sum correct"
# else
# echo "sha1sum INCORRECT! skipping..."
# fi
# else
# echo -n "try to download... "
# if curl -L "https://file-store.rosalinux.ru/download/${sha}" -o "${file}"; then
# echo "ok"
# echo -n "check sum... "
# if echo "${sha} ${file}" | sha1sum -c --status; then
# echo "ok"
# else
# echo "sha1sum INCORRECT! skipping..."
# echo "remove file ${file}"
# rm -f "${file}"
# fi
# else
# echo "filed! skipping..."
# fi
# fi
# done
# fi
abfyml=.abf.yml
filestore="https://file-store.rosa.ru"
if [ -e "${abfyml}" ]; then
echo "parsing file '${abfyml}'"
sed -ne '/^[Ss]ources\:.*$/,$p' ${abfyml} | \
sed -rn '$G;s/^[\"'\''[:space:]]*([^[:space:]:\"'\'']+)[\"'\''[:space:]]*.*[\"'\''[:space:]]*([0-9a-fA-F]{40})[\"'\''[:space:]]*$/\1 \2/p' | \
while read -r file sha; do
echo -n "found entry: file=${file} ... "
if [ -e "${file}" ]; then
if echo "${sha} ${file}" | sha1sum -c --status; then
echo "sha1sum correct"
else
echo "sha1sum INCORRECT! skipping..."
fi
else
echo -n "try to download... "
if curl -L "${filestore}/download/${sha}" -o "${file}"; then
echo "ok"
echo -n "check sum... "
if echo "${sha} ${file}" | sha1sum -c --status; then
echo "ok"
else
echo "sha1sum INCORRECT! skipping..."
echo "remove file ${file}"
rm -f "${file}"
fi
else
echo "filed! skipping..."
fi
fi
done
fi
- name: Copy all source to rpm source dir
run: |