From c35534f22082b9d5bf23797bd3fbb36f8b738254 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 9 May 2018 09:36:19 +0200 Subject: lib/common-functions: remove obsolete function "official_or_community()" --- lib/common-functions | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'lib') diff --git a/lib/common-functions b/lib/common-functions index 5949766..b6c95d8 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -123,24 +123,6 @@ repository_of_package() { esac } -# official_or_community $package.$repo_revision.$mod_repo_revision.$repository $ending -# print wether the specified package is an official package (print -# $ending) or a community package (print 'community-$ending') or a -# build-support package (print 'build-support') - -official_or_community() { - local prepo - prepo=$(repository_of_package "$1") - - if [ "${prepo}" = 'community' ]; then - echo 'community-'"$2" - elif [ "${prepo}" = 'build-support' ]; then - echo 'build-support' - else - echo "$2" - fi -} - # ls_master_mirror $path # list content of $path on the master mirror (via rsync) -- cgit v1.2.3-70-g09d2