]> git.saurik.com Git - apt.git/commitdiff
* debian/postinst:
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 1 May 2006 14:38:49 +0000 (16:38 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 1 May 2006 14:38:49 +0000 (16:38 +0200)
  - check for exmaple sources.list before coping it (Bug#361130)

debian/postinst

index 89179211137e16c7be20f5b6bb75deeee52334ba..1588f524123203701470750f6dac2e7678c67db4 100755 (executable)
@@ -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 ()