From 61512d1f05d0c6e98e0f9114bd099ba29495b26c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 23 Apr 2017 16:20:29 +0200 Subject: move find_pkgbuild into a separate file --- bin/get-package-updates | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'bin/get-package-updates') diff --git a/bin/get-package-updates b/bin/get-package-updates index df5cf7e..fa4f1d7 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -9,23 +9,6 @@ . "${0%/*}/../conf/default.conf" -# find the PKGBUILD of a given package in a given repository -# TODO: -# _properly_ include repository of package customizations - -find_pkgbuild() { - - for prefix in "${repo_paths["packages"]}" "${repo_paths["community"]}"; do - [ -d "${prefix}/$1" ] || continue - ls "${prefix}/$1/repos/$2-"*"/PKGBUILD" 2> /dev/null && break - done | \ - tr ' ' '\n' | \ - grep -v -- '-i686/PKGBUILD$' | \ - grep -v -- '-\(staging\|testing\)-[^/]\+/PKGBUILD$' | \ - sort | \ - tail -n1 -} - # Create a lock file for build list. exec 9> "${lock_file}" -- cgit v1.2.3-70-g09d2