summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-05-01 16:38:49 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-05-01 16:38:49 +0200
commite86080159e32b2dd2354c037441a49f1ee0a62dd (patch)
tree6c16449bd8803acaab43083776ea08405b86f08a /debian/postinst
parentb2c220756c2c571595765ca23da48c611b88d057 (diff)
* debian/postinst:
- check for exmaple sources.list before coping it (Bug#361130)
Diffstat (limited to 'debian/postinst')
-rwxr-xr-xdebian/postinst5
1 files changed, 4 insertions, 1 deletions
diff --git a/debian/postinst b/debian/postinst
index 891792111..1588f5241 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -12,7 +12,10 @@ set -e
create_apt_conf ()
{
- cp /usr/share/doc/apt/examples/sources.list /etc/apt/sources.list
+ EXAMPLE_SOURCE=/usr/share/doc/apt/examples/sources.list
+ if [ -f $EXAMPLE_SOURCE ]; then
+ cp $EXAMPLE_SOURCE /etc/apt/sources.list
+ fi
}
check_apt_conf ()