Explorar el Código

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

Michael Vogt hace 20 años
padre
commit
e86080159e
Se han modificado 1 ficheros con 4 adiciones y 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 ()