summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/remove.sh48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/remove.sh b/src/remove.sh
index a2d06a6..c6b6f9c 100644
--- a/src/remove.sh
+++ b/src/remove.sh
@@ -20,30 +20,6 @@
# along with the ProteanOS Archive Manager. If not, see
# <http://www.gnu.org/licenses/>.
-remove_source_from_suite()
-{
- local chan="${1}"
- local dist="${2}"
- local source="${3}"
- shift 3
- local arch=
- local plat=
-
- info "$(get_msg 'removing_from_suite')" \
- "${source}" "${chan}" "${dist}"
-
- while read -r arch plat; do
- remove_packages_from_suite_archplat \
- "${chan}" "${dist}" "${arch}" "${plat}" "${source}"
- done <<-EOF
- $(db_get_archplats "${chan}" "${dist}" "${source}")
- EOF
-
- db_del_srcver "${chan}" "${dist}" "${source}"
-
- return 0
-}
-
remove_packages_from_suite_archplat()
{
local chan="${1}"
@@ -88,3 +64,27 @@ remove_packages_from_suite_archplat()
return 0
}
+
+remove_source_from_suite()
+{
+ local chan="${1}"
+ local dist="${2}"
+ local source="${3}"
+ shift 3
+ local arch=
+ local plat=
+
+ info "$(get_msg 'removing_from_suite')" \
+ "${source}" "${chan}" "${dist}"
+
+ while read -r arch plat; do
+ remove_packages_from_suite_archplat \
+ "${chan}" "${dist}" "${arch}" "${plat}" "${source}"
+ done <<-EOF
+ $(db_get_archplats "${chan}" "${dist}" "${source}")
+ EOF
+
+ db_del_srcver "${chan}" "${dist}" "${source}"
+
+ return 0
+}