From c60d06e050e929d454b447a3cac3263a83d0a445 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Thu, 3 Nov 2011 15:42:12 -0300 Subject: Removed unneeded code --- db-sync | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'db-sync') diff --git a/db-sync b/db-sync index 4c5dd7a..0bb79b7 100755 --- a/db-sync +++ b/db-sync @@ -16,23 +16,6 @@ # * make a tarball of files used for forensics # * get files db -# eval this -# *not needed* -BASEURL="ftp://ftp.archlinux.org/\$repo/os/\$arch/\$file" - -# Generates an URL from BASE_URL -# _Params_ -# * repo -# * arch -# * file -eval_url() { - repo="$1" - arch="$2" - file="$3" - - eval "${BASE_URL}" -} - # Returns contents of a repo get_repos() { # Exclude everything but db files @@ -51,11 +34,6 @@ get_repo_content() { sort -u } -# Get the database compression as an extension -get_repo_ext() { - file "$1" | tr A-Z a-z | sed -e "s/^[^:]\+: *\(.z\).*$/.tar.\1/" -e "s/bz/&2" -} - # Prints blacklisted packages get_blacklist() { cut -d ':' -f 1 "${BLACKLIST_FILE}" -- cgit v1.2.3-54-g00ecf