From: Michael Vogt Date: Mon, 1 May 2006 14:38:49 +0000 (+0200) Subject: * debian/postinst: X-Git-Tag: 0.7.21~325^2~1^2 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/e86080159e32b2dd2354c037441a49f1ee0a62dd?hp=--cc * debian/postinst: - check for exmaple sources.list before coping it (Bug#361130) --- e86080159e32b2dd2354c037441a49f1ee0a62dd 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 ()