From 521ae794911f196679b23cdb0c94995799dab6db Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 9 May 2018 10:55:45 +0200 Subject: lib/common-functions: remove obsolete function --- lib/common-functions | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'lib/common-functions') diff --git a/lib/common-functions b/lib/common-functions index b6c95d8..65189dc 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -98,31 +98,6 @@ find_git_repository_to_package_repository() { } -# repository_of_package $package.$repo_revision.$mod_repo_revision.$repository -# print which (stable) repository a package belongs to - -repository_of_package() { - local package="$1" - local repository="${package##*.}" - package="${package%.*}" - local a32_rev="${package##*.}" - package="${package%.*.*}" - - case "${repository}" in - 'multilib') - if git -C "${repo_paths__archlinux32}" archive --format=tar "${a32_rev}" -- 'extra-from-multilib' | \ - tar -Ox | \ - grep -qFx "${package%.*.*.*}"; then - echo 'extra' - else - echo 'community' - fi - ;; - *) - echo "${repository}" - esac -} - # ls_master_mirror $path # list content of $path on the master mirror (via rsync) -- cgit v1.2.3-54-g00ecf