From 5fe5fa90fab4c60b1529ec03a9c482050981625f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 7 Jun 2017 11:03:05 +0200 Subject: bin/return-assignment: put all packages into _one_ staging directory and rename statefile instead of removing it --- bin/return-assignment | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/return-assignment b/bin/return-assignment index aca4062..71a89b6 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -128,13 +128,13 @@ if [ -n "${package_errors}" ]; then fi # move packages -mkdir -p "${master_mirror_directory}/i686/$4-staging/" -mv *.pkg.tar.xz{,.sig} "${master_mirror_directory}/i686/$4-staging/" +mkdir -p "${master_mirror_directory}/i686/staging/" +mv *.pkg.tar.xz{,.sig} "${master_mirror_directory}/i686/staging/" ( - cd "${master_mirror_directory}/i686/$4-staging" - repo-add "$4-staging.db.tar.gz" "${packages[@]}" - # repo-add -v -s -k "${repo_key}" "$4-staging.db.tar.gz" "${packages[@]}" + cd "${master_mirror_directory}/i686/staging" + repo-add 'staging.db.tar.gz' "${packages[@]}" + # repo-add -v -s -k "${repo_key}" 'staging.db.tar.gz' "${packages[@]}" # remove old versions of same packages for package in "${packages[@]}"; do @@ -156,4 +156,4 @@ grep "^${1//./\\.}\$" "${work_dir}/build-list.loops/loop_"* 2> /dev/null | \ sed -i "/^${1//./\\.} $2 $3 $4\$/d" "${work_dir}/build-list" # remove package lock file -rm "${work_dir}/package-states/$1.$2.$3.$4.locked" +mv "${work_dir}/package-states/$1.$2.$3.$4."{locked,done} -- cgit v1.2.3-70-g09d2