reprepro: Ensure to remove useless .deb in any case

This commit is contained in:
Jeremy Gardais 2021-07-07 12:36:34 +02:00
parent 494ac1ef70
commit af622337ff
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 7 additions and 5 deletions

View File

@ -203,17 +203,19 @@ Manage ${package} file."
|| error_message "Error when adding ${package} to ${release}." 4
done
### }}}
### Then finally remove the package {{{
debug_message "while_package \
Remove ${package} file."
rm -f -- "${package}"
### }}}
else
### If package is empty or doesn't exists, just skip it {{{
debug_message "while_package \
Skip ${package} file."
### }}}
fi
### In any case, remove the package {{{
debug_message "while_package \
Remove ${package} file."
rm --force -- "${package}"
### }}}
done < "${packages_list_file}"
## }}}