summaryrefslogtreecommitdiffstats
path: root/src/db.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.sh')
-rw-r--r--src/db.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/db.sh b/src/db.sh
index 01bf437..703dca0 100644
--- a/src/db.sh
+++ b/src/db.sh
@@ -29,6 +29,7 @@ db_get_srcver()
local chan="${1}"
local dist="${2}"
local source="${3}"
+ shift 3
local dir=
dir="${base_dir}/feeds/${chan}/${dist}/.db"
@@ -46,6 +47,7 @@ db_set_srcver()
local dist="${2}"
local source="${3}"
local srcver="${4}"
+ shift 4
local dir=
dir="${base_dir}/feeds/${chan}/${dist}/.db"
@@ -61,6 +63,7 @@ db_del_srcver()
local chan="${1}"
local dist="${2}"
local source="${3}"
+ shift 3
local dir=
dir="${base_dir}/feeds/${chan}/${dist}/.db"
@@ -83,6 +86,7 @@ db_get_binver()
local arch="${3}"
local plat="${4}"
local source="${5}"
+ shift 5
local dir=
dir="${base_dir}/feeds/${chan}/${dist}/.db"
@@ -102,6 +106,7 @@ db_set_binver()
local plat="${4}"
local source="${5}"
local binver="${6}"
+ shift 6
local dir=
dir="${base_dir}/feeds/${chan}/${dist}/.db"
@@ -119,6 +124,7 @@ db_del_binver()
local arch="${3}"
local plat="${4}"
local source="${5}"
+ shift 5
local dir=
dir="${base_dir}/feeds/${chan}/${dist}/.db"
@@ -135,9 +141,8 @@ db_foreach_source()
local chan="${1}"
local dist="${2}"
local cb="${3}"
- local dir=
-
shift 3
+ local dir=
dir="${base_dir}/feeds/${chan}/${dist}/.db"
# For each hash:
@@ -164,6 +169,7 @@ db_get_archplats()
local chan="${1}"
local dist="${2}"
local source="${3}"
+ shift 3
local dir=
dir="${base_dir}/feeds/${chan}/${dist}/.db"
@@ -190,6 +196,7 @@ db_get_packages()
local plat="${2}"
local source="${3}"
local binver="${4}"
+ shift 4
local dir=
dir="${base_dir}/pool/$(hash_name "${source}")/${source}/.db"
@@ -210,6 +217,7 @@ db_add_package()
local size="${5}"
local sect="${6}"
local pkg="${7}"
+ shift 7
local dir=
dir="${base_dir}/pool/$(hash_name "${source}")/${source}/.db"
@@ -226,6 +234,7 @@ db_del_packages()
local plat="${2}"
local source="${3}"
local binver="${4}"
+ shift 4
local dir=
dir="${base_dir}/pool/$(hash_name "${source}")/${source}/.db"
@@ -245,6 +254,7 @@ db_inc_references()
local plat="${2}"
local source="${3}"
local binver="${4}"
+ shift 4
local dir=
local refs=
@@ -269,6 +279,7 @@ db_dec_references()
local plat="${2}"
local source="${3}"
local binver="${4}"
+ shift 4
local dir=
local refs=