summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2017-05-03 16:05:12 (GMT)
committerEdwin Mons <edwin.mons@isode.com>2017-05-03 19:17:53 (GMT)
commitdc70dbb6af039fba8f7a1cece8db4bb119deaabd (patch)
tree8468d24ceb9bd3e639c046a9b2b08cdac3ffb755 /Swift/Packaging/Debian/update_debian_repo.sh
parent34f1bbf1fad2eecd7f9844f76f1bc073cc34a581 (diff)
downloadswift-dc70dbb6af039fba8f7a1cece8db4bb119deaabd.zip
swift-dc70dbb6af039fba8f7a1cece8db4bb119deaabd.tar.bz2
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
Diffstat (limited to 'Swift/Packaging/Debian/update_debian_repo.sh')
-rw-r--r--Swift/Packaging/Debian/update_debian_repo.sh8
1 files changed, 7 insertions, 1 deletions
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