Skip to content
Snippets Groups Projects
Verified Commit c52b1c5d authored by Levente Polyak's avatar Levente Polyak :rocket:
Browse files

fix(cron): ensure compare target files are always created

This avoids the issue of failing `comm` calls due to missing files,
which was previously masked as the script did not have errfail set.
parent 76d9f026
No related branches found
No related tags found
No related merge requests found
......@@ -87,6 +87,7 @@ for f in "$FTP_BASE/${PKGPOOL}"/*${PKGEXTS}; do
done | sort > "${WORKDIR}/pool"
# create a list of packages in our db
touch "${WORKDIR}/db"
if [[ -s ${WORKDIR}/pool ]]; then
cat "${WORKDIR}"/db-!(*-debug-*) 2>/dev/null | sort -u > "${WORKDIR}/db"
fi
......@@ -97,6 +98,7 @@ for f in "$FTP_BASE/${DEBUGPKGPOOL}"/*${PKGEXTS}; do
done | sort > "${WORKDIR}/debugpool"
# seperate list for packages in our debug db
touch "${WORKDIR}/debug-db"
if [[ -s ${WORKDIR}/debugpool ]]; then
cat "${WORKDIR}"/db-*-debug-* 2>/dev/null | sort -u > "${WORKDIR}/debug-db"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment