diff --git a/CMakeLists.txt b/CMakeLists.txt index 4117aebe4c724c66f79ae3a5564abd9a498b3bef..bbc39dc5582d7e635e4e219ae7b05e7c3cddb16e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -193,7 +193,7 @@ check_cxx_target(HAVE_FMV_SSE42_AND_CRC32DI "sse4.2" "__builtin_ia32_crc32di(0, # Configure some variables like package, version and architecture. set(PACKAGE ${PROJECT_NAME}) set(PACKAGE_MAIL "APT Development Team <deity@lists.debian.org>") -set(PACKAGE_VERSION "1.8.2.2") +set(PACKAGE_VERSION "1.8.2.3") if (NOT DEFINED DPKG_DATADIR) execute_process(COMMAND ${PERL_EXECUTABLE} -MDpkg -e "print $Dpkg::DATADIR;" diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index bb3bc1b56ac38e8f187ef44adf4917015a472aa1..606c949652a7a5ae82a806f0edf91b0b592ad958 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -1828,7 +1828,7 @@ bool pkgAcqMetaBase::VerifyVendor(string const &) /*{{{*/ { "Origin", AllowInfoChange, &metaIndex::GetOrigin }, { "Label", AllowInfoChange, &metaIndex::GetLabel }, { "Version", true, &metaIndex::GetVersion }, // numbers change all the time, that is okay - { "Suite", AllowInfoChange, &metaIndex::GetSuite }, + { "Suite", true, &metaIndex::GetSuite }, { "Codename", AllowInfoChange, &metaIndex::GetCodename }, { nullptr, false, nullptr } }; diff --git a/debian/changelog b/debian/changelog index 44f80d1876767808077e41fa85e49f9a37fa7c83..e8a87abe81d3b9fffbf73c8b79bd2ce8ea9ecb27 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +apt (1.8.2.3) buster; urgency=medium + + * Default Acquire::AllowReleaseInfoChange::Suite to "true" (Closes: #931566) + + -- Julian Andres Klode <jak@debian.org> Mon, 19 Apr 2021 18:41:13 +0200 + apt (1.8.2.2) buster-security; urgency=high * SECURITY UPDATE: Integer overflow in parsing (LP: #1899193) diff --git a/doc/apt-verbatim.ent b/doc/apt-verbatim.ent index b8c33d072ed46556a2c037569befb5be7bc6bffc..49141059998ba48f2e0865321052c019a61518cc 100644 --- a/doc/apt-verbatim.ent +++ b/doc/apt-verbatim.ent @@ -268,7 +268,7 @@ "> <!-- this will be updated by 'prepare-release' --> -<!ENTITY apt-product-version "1.8.2.2"> +<!ENTITY apt-product-version "1.8.2.3"> <!-- (Code)names for various things used all over the place --> <!ENTITY debian-oldstable-codename "stretch"> diff --git a/doc/po/apt-doc.pot b/doc/po/apt-doc.pot index d143d0a6cd1e9119bbbb2bba04ecbeb3387fde88..5e01d8d9043d507f39aed378cd300213e38948a6 100644 --- a/doc/po/apt-doc.pot +++ b/doc/po/apt-doc.pot @@ -5,9 +5,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: apt-doc 1.8.2.2\n" +"Project-Id-Version: apt-doc 1.8.2.3\n" "Report-Msgid-Bugs-To: APT Development Team <deity@lists.debian.org>\n" -"POT-Creation-Date: 2020-12-02 17:16+0000\n" +"POT-Creation-Date: 2021-04-19 16:47+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/po/apt-all.pot b/po/apt-all.pot index 373c4052c93fdad2d7f4174aabb98a133273628d..7a2bf168e88c393873b9c7bed59a273960fe3a28 100644 --- a/po/apt-all.pot +++ b/po/apt-all.pot @@ -5,9 +5,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: apt 1.8.2.2\n" +"Project-Id-Version: apt 1.8.2.3\n" "Report-Msgid-Bugs-To: APT Development Team <deity@lists.debian.org>\n" -"POT-Creation-Date: 2020-12-02 17:16+0000\n" +"POT-Creation-Date: 2021-04-19 16:47+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/test/integration/test-apt-update-releaseinfo-changes b/test/integration/test-apt-update-releaseinfo-changes index e4bca3658e5218cb402333eb97b0f783c7094ff7..ee36c46873c6a1da337cc6bf5d39823f804d8abe 100755 --- a/test/integration/test-apt-update-releaseinfo-changes +++ b/test/integration/test-apt-update-releaseinfo-changes @@ -78,3 +78,17 @@ testsuccesswithnotice apt update --allow-releaseinfo-change-defaultpin testequal "All packages are up to date. N: Repository 'file:$APTARCHIVE earth InRelease' changed its default priority for apt_preferences(5) from 1 to 500. N: More information about this can be found online in the Release notes at: https://example.org/mars/release-notes" tail -n 3 rootdir/tmp/testsuccesswithnotice.output + +# Suite testing also needs codename adjustment, otherwise complaints about +# mismatch between sources.list and Release file. +sed -i -e 's#^Suite: earth#Suite: mars#' $(find ./aptarchive -name 'Release') +sed -i -e 's#^Codename: colony#Codename: earth#' $(find ./aptarchive -name 'Release') +signreleasefiles +testfailuremsg "E: Repository 'file:$APTARCHIVE earth InRelease' changed its 'Suite' value from 'earth' to 'mars' +E: Repository 'file:$APTARCHIVE earth InRelease' changed its 'Codename' value from 'colony' to 'earth' +N: More information about this can be found online in the Release notes at: https://example.org/mars/release-notes +N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details." apt update --no-allow-releaseinfo-change-suite +testsuccesswithnotice apt update --allow-releaseinfo-change-codename +testequal "N: Repository 'file:$APTARCHIVE earth InRelease' changed its 'Suite' value from 'earth' to 'mars' +N: Repository 'file:$APTARCHIVE earth InRelease' changed its 'Codename' value from 'colony' to 'earth' +N: More information about this can be found online in the Release notes at: https://example.org/mars/release-notes" tail -n 3 rootdir/tmp/testsuccesswithnotice.output