From 980500a2f7cba7ba7412c8a8902dc72eab8e0e0b Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Thu, 7 Jan 2021 14:28:31 +0200 Subject: [PATCH] CI: update-whatprovides-db: exit if ./debs directory is empty --- .github/workflows/packages.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 5d77f4050..6d9ce078b 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -154,6 +154,8 @@ jobs: for i in debs-*.tar; do tar xf $i done + # If ./debs is empty - exit. + rmdir ./debs && exit 0 # Retrieve old db since we can't generate the complete one without # all repository packages. curl --fail --retry 3 --retry-connrefused --retry-delay 10 \