From dc70dbb6af039fba8f7a1cece8db4bb119deaabd Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Wed, 3 May 2017 18:05:12 +0200 Subject: Add workaround for adding sid packages to apt repo via reprepro Test-Information: Tested the changes on our repository server. It removes the dbgsym packages, that debuild automatically builds since sid, from the .changes file. This way reprepro will not complain about them and add the usual packages to the repository. Change-Id: I1e4d956ecdc76bd9256cf502bd561abcd0968252 diff --git a/Swift/Packaging/Debian/update_debian_repo.sh b/Swift/Packaging/Debian/update_debian_repo.sh index 6a337fb..d62a376 100644 --- a/Swift/Packaging/Debian/update_debian_repo.sh +++ b/Swift/Packaging/Debian/update_debian_repo.sh @@ -64,7 +64,7 @@ TempDir: $APT_TEMP_DIR Allow: beta development release Multiple: Yes Cleanup: unused_files on_error -Permit: older_version +Permit: unused_files older_version EOM } @@ -89,6 +89,12 @@ for full_distribution_path in $INCOMING_FOLDER/{debian,ubuntu}/*; do write_reprepo_conf_incoming_to_file "${distro_reprepro_root}/conf/incoming" "$full_distribution_path" fi + # This is workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808558 + # and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=843402 + if [ "$distro_name/$distro_version" = "debian/sid" ]; then + sed -i '/dbgsym/ d' $full_distribution_path/*.changes + fi + echo "Process incoming packages for $distro_name/$distro_version" #set +e reprepro -V -b ${distro_reprepro_root} processincoming swift -- cgit v0.10.2-6-g49f6