]> git.saurik.com Git - apt.git/blobdiff - debian/postinst
Merge branch 'debian/sid' of https://github.com/ion1/apt into debian/sid
[apt.git] / debian / postinst
index 274724cdbbceaebc32064dc55c89c403ee8a30c0..1588f524123203701470750f6dac2e7678c67db4 100755 (executable)
@@ -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
               #