summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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}"