summaryrefslogtreecommitdiffstats
path: root/src/remove.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-13 23:01:59 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-13 23:01:59 (EDT)
commit68ba570c6906ae839c23317295e114da5f23df53 (patch)
tree24a28c0a43720beaf6b1390a9d6e567c100e4604 /src/remove.sh
parent83167fcab9dc5de4e6c1b885b836654c673a7ef4 (diff)
remove_packages_from_suite_archplat(): Move before use
Diffstat (limited to 'src/remove.sh')
-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
+}