diff -Nru /tmp/MgLk5UmUPS/ubuntu-keyring-2008.03.03/debian/changelog /tmp/Qk0up2YOAg/ubuntu-keyring-2008.03.04/debian/changelog --- /tmp/MgLk5UmUPS/ubuntu-keyring-2008.03.03/debian/changelog 2008-03-03 07:17:02.000000000 -0800 +++ /tmp/Qk0up2YOAg/ubuntu-keyring-2008.03.04/debian/changelog 2008-03-03 16:48:55.000000000 -0800 @@ -1,3 +1,10 @@ +ubuntu-keyring (2008.03.04) hardy; urgency=low + + * Ensure /var/lib/apt/keyrings exists before trying to copy to it (LP: + #198110) + + -- Andrew Pollock Mon, 03 Mar 2008 16:47:25 -0800 + ubuntu-keyring (2008.03.03) hardy; urgency=low * put ubuntu-master-keyring.gpg into /var/lib/apt/keyrings to diff -Nru /tmp/MgLk5UmUPS/ubuntu-keyring-2008.03.03/debian/postinst /tmp/Qk0up2YOAg/ubuntu-keyring-2008.03.04/debian/postinst --- /tmp/MgLk5UmUPS/ubuntu-keyring-2008.03.03/debian/postinst 2008-03-03 07:17:02.000000000 -0800 +++ /tmp/Qk0up2YOAg/ubuntu-keyring-2008.03.04/debian/postinst 2008-03-03 16:51:02.000000000 -0800 @@ -7,7 +7,13 @@ # the keyring in /var that gets fetched by apt-key net-update # if it does not yet exist, copy it to avoid uneeded net copy -KEYRING="/var/lib/apt/keyrings/ubuntu-archive-keyring.gpg" +KEYRINGDIR="/var/lib/apt/keyrings" +KEYRING="${KEYRINGDIR}/ubuntu-archive-keyring.gpg" + +if ! test -d $KEYRINGDIR; then + mkdir -m 755 -p $KEYRINGDIR +fi + if ! test -f $KEYRING; then cp /usr/share/keyrings/ubuntu-archive-keyring.gpg $KEYRING touch $KEYRING