From f417ec10669b6bb428d2920113c9a6120ecbd25d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 28 Jul 2013 20:52:53 -0400 Subject: _suite_copy_source(): Set srcver and binvers. --- (limited to 'lib') 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}" -- cgit v0.9.1