Skip to content

Commit

Permalink
Merge pull request #3360 from morphis/f/pkgdb-add-autoremove
Browse files Browse the repository at this point in the history
tests/libs: add distro_auto_remove_packages function
  • Loading branch information
mvo5 committed May 22, 2017
2 parents 57eaf8f + 8a1aef8 commit 3ae1d99
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/lib/pkgdb.sh
Expand Up @@ -120,3 +120,15 @@ distro_clean_package_cache() {
;;
esac
}

distro_auto_remove_packages() {
case "$SPREAD_SYSTEM" in
ubuntu-*|debian-*)
quiet apt-get -y autoremove
;;
*)
echo "ERROR: Unsupported distribution '$SPREAD_SYSTEM'"
exit 1
;;
esac
}

0 comments on commit 3ae1d99

Please sign in to comment.