X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/fe8f82e5149bba8d0166bbbd06a33733d639ad68..b11f95991d844d36fc0e3832810057f72a2d810b:/debian/postinst diff --git a/debian/postinst b/debian/postinst index 274724cdb..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 () @@ -25,7 +28,6 @@ check_apt_conf () case "$1" in configure) - ldconfig # # If there is no /etc/apt/sources.list then create a default #