summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-07-28 20:52:53 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-07-28 20:52:53 (EDT)
commitf417ec10669b6bb428d2920113c9a6120ecbd25d (patch)
tree46d2d588a68e3246c97bd504ba7a6fff633ff486
parent21b7083e5c04e39c94255863af6d3e5daa1b4c04 (diff)
_suite_copy_source(): Set srcver and binvers.
-rw-r--r--lib/suite.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/suite.sh b/lib/suite.sh
index 2364e5a..c81f73e 100644
--- a/lib/suite.sh
+++ b/lib/suite.sh
@@ -48,6 +48,7 @@ _suite_copy_source()
local source="${3}"
local dst_chan="${4}"
local dst_dist="${5}"
+ local srcver=
local plat=
local arch=
local binver=
@@ -56,9 +57,14 @@ _suite_copy_source()
local pkg=
local pool_file=
+ srcver="$(db_get_srcver "${chan}" "${dist}" "${source}")"
+ db_set_srcver "${dst_chan}" "${dst_dist}" "${source}" "${srcver}"
+
while read -r plat arch; do
binver="$(db_get_binver "${src_chan}" "${src_dist}" \
"${plat}" "${arch}" "${source}")"
+ db_set_binver "${dst_chan}" "${dst_dist}" "${plat}" "${arch}" \
+ "${source}" "${binver}"
while read -r size sect pkg; do
pool_file="pool/$(hash_name "${source}")/${source}"
pool_file="${pool_file}/${pkg}_${binver}"