Skip to content

Commit

Permalink
Merge pull request #357 from Martchus/avoid-submitting-untested-packages
Browse files Browse the repository at this point in the history
Ensure staging project is also cleaned up in case of an early return
  • Loading branch information
mergify[bot] authored Nov 27, 2024
2 parents e8d8e56 + 75512a6 commit 2967c95
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions os-autoinst-obs-auto-submit
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,6 @@ handle_auto_submit() {
cd "$dst_project"/"$package"
update_package "$package"
)

# delete package from staging project
[[ $from_staging ]] && $osc rdelete -m "Cleaning up $package from $staging_project for next submission" "$staging_project" "$package"
}

prefix="${prefix:-""}"
Expand All @@ -185,5 +182,7 @@ trap 'rm -rf "$TMPDIR"' EXIT
auto_submit_packages=${packages:-$($osc ls "$dst_project" | grep -v '\-test$')}
for package in $auto_submit_packages; do
handle_auto_submit "$package"
# delete package from staging project
[[ $from_staging ]] && $osc rdelete -m "Cleaning up $package from $staging_project for next submission" "$staging_project" "$package"
done
)

0 comments on commit 2967c95

Please sign in to comment.