summaryrefslogtreecommitdiffstats
path: root/src/db.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.sh')
-rw-r--r--src/db.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/db.sh b/src/db.sh
index 944d701..ab36718 100644
--- a/src/db.sh
+++ b/src/db.sh
@@ -53,7 +53,7 @@ db_set_srcver()
dir="${base_dir}/feeds/${chan}/${dist}/.db"
dir="${dir}/$(hash_name "${source}")/${source}"
mkdir -p -- "${dir}"
- printf '%s\n' "${srcver}" >"${dir}/srcver"
+ printf '%s\n' "${srcver}" 1>"${dir}/srcver"
return 0
}
@@ -112,7 +112,7 @@ db_set_binver()
dir="${base_dir}/feeds/${chan}/${dist}/.db"
dir="${dir}/$(hash_name "${source}")/${source}/${arch}_${plat}"
mkdir -p -- "${dir}"
- printf '%s\n' "${binver}" >"${dir}/binver"
+ printf '%s\n' "${binver}" 1>"${dir}/binver"
return 0
}
@@ -223,7 +223,7 @@ db_add_package()
dir="${base_dir}/pool/$(hash_name "${source}")/${source}/.db"
dir="${dir}/${binver}_${arch}_${plat}"
mkdir -p -- "${dir}"
- printf '%s %s %s\n' "${size}" "${sect}" "${pkg}" >>"${dir}/packages"
+ printf '%s %s %s\n' "${size}" "${sect}" "${pkg}" 1>>"${dir}/packages"
return 0
}
@@ -267,7 +267,7 @@ db_inc_references()
refs=1
mkdir -p -- "${dir}"
fi
- printf '%d\n' "${refs}" >"${dir}/references"
+ printf '%d\n' "${refs}" 1>"${dir}/references"
printf '%d\n' "${refs}"
return 0
@@ -294,7 +294,7 @@ db_dec_references()
if [ ${refs} -eq 0 ]; then
rm -f -- "${dir}/references"
else
- printf '%d\n' "${refs}" >"${dir}/references"
+ printf '%d\n' "${refs}" 1>"${dir}/references"
fi
printf '%d\n' "${refs}"