summaryrefslogtreecommitdiff
path: root/db-sync
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-11-03 15:42:12 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-11-03 15:42:12 -0300
commitc60d06e050e929d454b447a3cac3263a83d0a445 (patch)
tree8e7d779697529f2196f6baee57f4c8a0e605834d /db-sync
parent92a8525eb5ed349f95c080c61c821399e3917842 (diff)
Removed unneeded code
Diffstat (limited to 'db-sync')
-rwxr-xr-xdb-sync22
1 files changed, 0 insertions, 22 deletions
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}"