~ubuntu-branches/ubuntu/raring/ubuntu-keyring/raring

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Pollock
  • Date: 2008-03-03 16:47:25 UTC
  • Revision ID: james.westby@ubuntu.com-20080303164725-ep6gq1afh9rkf7u0
Tags: 2008.03.04
Ensure /var/lib/apt/keyrings exists before trying to copy to it (LP:
#198110)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
# the keyring in /var that gets fetched by apt-key net-update
9
9
# if it does not yet exist, copy it to avoid uneeded net copy
10
 
KEYRING="/var/lib/apt/keyrings/ubuntu-archive-keyring.gpg"
 
10
KEYRINGDIR="/var/lib/apt/keyrings"
 
11
KEYRING="${KEYRINGDIR}/ubuntu-archive-keyring.gpg"
 
12
 
 
13
if ! test -d $KEYRINGDIR; then
 
14
     mkdir -m 755 -p $KEYRINGDIR
 
15
fi
 
16
 
11
17
if ! test -f $KEYRING; then
12
18
     cp /usr/share/keyrings/ubuntu-archive-keyring.gpg $KEYRING
13
19
     touch $KEYRING