From 49badd0b69b96c23b307e97f86f2f0ca1e302752 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 22 May 2023 10:35:26 +0200 Subject: fix duplicate-package error for moved packages * now, moving packages is broken, it won't remove the source * add a TODO to fix this --- bin/get-package-updates | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/get-package-updates') diff --git a/bin/get-package-updates b/bin/get-package-updates index 28e3536..f9ef9d6 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -335,10 +335,9 @@ echo 'Check modified packages from the last update, and put them to the build li if [ "${mode}" = '<' ]; then if check_if_package_should_be_deleted "${pkgbase}" "${repository}"; then delete_package 'any' "${pkgbase}" - continue - else - mode='>' + # TODO: remove moved packages, too fi + continue fi if git -C "${repo_paths__archlinux32}" archive "${new_repo_revisions__archlinux32}" -- "${repository}/${pkgbase}" >/dev/null 2>&1; then mod_git_revision="${new_repo_revisions__archlinux32}" @@ -347,6 +346,7 @@ echo 'Check modified packages from the last update, and put them to the build li fi printf '%s %s %s %s\n' "${pkgbase}" "${repository}" "${git_revision}" "${mod_git_revision}" done + exit 1 git -C "${repo_paths__archlinux32}" diff "${old_repo_revisions__archlinux32}^^" "${new_repo_revisions__archlinux32}" --name-status \ | tr '\t/' ' ' \ | cut -d' ' -f1,2,3 \ -- cgit v1.2.3-70-g09d2