X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/1f64c1c02100e6c9ddff843e1b9c5face501d0e5..a1b5561a036ebbe416cccfb2bd476a838ddb6286:/debian/postinst?ds=sidebyside 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 ()