Explorar o código

* debian/postinst:
- check for exmaple sources.list before coping it (Bug#361130)

Michael Vogt %!s(int64=20) %!d(string=hai) anos
pai
achega
e86080159e
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      debian/postinst

+ 4 - 1
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 ()