diff options
Diffstat (limited to 'src/db.sh')
-rw-r--r-- | src/db.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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}" |