diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-08-01 16:12:13 +0000 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-08-01 16:12:13 +0000 |
commit | 4481fc8e8fa5227c08271e4fa95eae78e6531800 (patch) | |
tree | 50fade9e325a0d31dfc33dcd80ae5d9336fb6bb5 | |
parent | 31efb9e8e894932ce88218c9aebfd4048d81658c (diff) |
* added debian/patches dir
-rwxr-xr-x | cmdline/apt-key | 6 | ||||
-rw-r--r-- | debian/apt.postinst | 2 | ||||
-rw-r--r-- | debian/patches/00list.Debian | 0 | ||||
-rw-r--r-- | debian/patches/00list.Ubuntu | 1 | ||||
-rwxr-xr-x | debian/patches/01_ubuntu_archive_key.dpatch | 40 |
5 files changed, 45 insertions, 4 deletions
diff --git a/cmdline/apt-key b/cmdline/apt-key index 0685e36f7..be2b19a1a 100755 --- a/cmdline/apt-key +++ b/cmdline/apt-key @@ -9,14 +9,14 @@ GPG_CMD="gpg --no-options --no-default-keyring --secret-keyring /etc/apt/secring GPG="$GPG_CMD --keyring /etc/apt/trusted.gpg" -ARCHIVE_KEYRING=/usr/share/keyrings/debian-archive-keyring.gpg -REMOVED_KEYS=/usr/share/keyrings/debian-archive-removed-keys.gpg +ARCHIVE_KEYRING=/usr/share/keyrings/ubuntu-archive-keyring.gpg +REMOVED_KEYS=/usr/share/keyrings/ubuntu-archive-removed-keys.gpg update() { if [ ! -f $ARCHIVE_KEYRING ]; then echo >&2 "ERROR: Can't find the archive-keyring" - echo >&2 "Is the debian-keyring package installed?" + echo >&2 "Is the ubuntu-keyring package installed?" exit 1 fi diff --git a/debian/apt.postinst b/debian/apt.postinst index ae1801198..df0433057 100644 --- a/debian/apt.postinst +++ b/debian/apt.postinst @@ -17,7 +17,7 @@ case "$1" in configure) if ! test -f /etc/apt/trusted.gpg; then - cp /usr/share/apt/debian-archive.gpg /etc/apt/trusted.gpg + cp /usr/share/apt/ubuntu-archive.gpg /etc/apt/trusted.gpg fi ;; diff --git a/debian/patches/00list.Debian b/debian/patches/00list.Debian new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/debian/patches/00list.Debian diff --git a/debian/patches/00list.Ubuntu b/debian/patches/00list.Ubuntu new file mode 100644 index 000000000..472282c73 --- /dev/null +++ b/debian/patches/00list.Ubuntu @@ -0,0 +1 @@ +01_ubuntu_archive_key diff --git a/debian/patches/01_ubuntu_archive_key.dpatch b/debian/patches/01_ubuntu_archive_key.dpatch new file mode 100755 index 000000000..4eb5bbccd --- /dev/null +++ b/debian/patches/01_ubuntu_archive_key.dpatch @@ -0,0 +1,40 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_ubuntu_archive_key.dpatch by <egon@localhost.localdomain> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: use the ubuntu archive key (instead of the debian one) + +@DPATCH@ +diff -urNad --exclude=CVS --exclude=.svn ./cmdline/apt-key /tmp/dpep-work.o4yrSO/apt--mvo/cmdline/apt-key +--- ./cmdline/apt-key 2005-06-26 22:41:36.000000000 +0200 ++++ /tmp/dpep-work.o4yrSO/apt--mvo/cmdline/apt-key 2005-08-01 17:59:56.000000000 +0200 +@@ -9,14 +9,14 @@ + GPG="$GPG_CMD --keyring /etc/apt/trusted.gpg" + + +-ARCHIVE_KEYRING=/usr/share/keyrings/debian-archive-keyring.gpg +-REMOVED_KEYS=/usr/share/keyrings/debian-archive-removed-keys.gpg ++ARCHIVE_KEYRING=/usr/share/keyrings/ubuntu-archive-keyring.gpg ++REMOVED_KEYS=/usr/share/keyrings/ubuntu-archive-removed-keys.gpg + + + update() { + if [ ! -f $ARCHIVE_KEYRING ]; then + echo >&2 "ERROR: Can't find the archive-keyring" +- echo >&2 "Is the debian-keyring package installed?" ++ echo >&2 "Is the ubuntu-keyring package installed?" + exit 1 + fi + +diff -urNad --exclude=CVS --exclude=.svn ./debian/apt.postinst /tmp/dpep-work.o4yrSO/apt--mvo/debian/apt.postinst +--- ./debian/apt.postinst 2005-06-26 22:41:36.000000000 +0200 ++++ /tmp/dpep-work.o4yrSO/apt--mvo/debian/apt.postinst 2005-08-01 18:00:23.000000000 +0200 +@@ -17,7 +17,7 @@ + configure) + + if ! test -f /etc/apt/trusted.gpg; then +- cp /usr/share/apt/debian-archive.gpg /etc/apt/trusted.gpg ++ cp /usr/share/apt/ubuntu-archive.gpg /etc/apt/trusted.gpg + fi + + ;; |