[CI/CD] Attempt to fix empty `branch_dir`.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Fabio Manganiello 2023-12-26 05:21:46 +01:00
parent 89757d4366
commit f3f1e96ad9
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 2 additions and 1 deletions

View File

@ -572,7 +572,8 @@ steps:
echo "stable\noldstable" | while read distro; do
echo "main\ndev" | while read branch; do
branch_dir="$TMP_APT_ROOT/pool/$distro/$branch"
[ -d "$branch_dir" ] || continue
echo "Checking pool folder: $branch_dir"
[ -d "$branch_dir" ] || mkdir -p "$branch_dir"
dist_dir="$TMP_APT_ROOT/dists/$distro/$branch/all"
mkdir -p "$dist_dir"
pkg_file="$dist_dir/Packages"