source: ubiquity/trunk/fuentes/debian/patches/apt-setup.patch @ 1419

Last change on this file since 1419 was 1419, checked in by kbut, 5 years ago

update patch to sources list

File size: 1.1 KB
  • scripts/apt-setup

    diff -Nuar ubiquity.orig/scripts/apt-setup ubiquity/scripts/apt-setup
    old new  
    11#! /bin/sh -e
    22
    3 . /usr/share/debconf/confmodule
     3COMPONENTS="main restricted universe multiverse"
     4DISTRO="$(lsb_release -cs | awk '{ print $2 }')"
     5ORIGINAL="/etc/apt/sources.list"
     6SOURCES="/target/etc/apt/sources.list"
     7CDROMSOURCES="/target/etc/apt/sources.list.d/cdrom.list"
     8append_cdrom_pool(){
     9        cat <<EOF
     10deb file:///cdrom $DISTRO $COMPONENTS
     11EOF
     12}
    413
    5 if CODENAME="$(lsb_release -cs)"; then
    6         # TODO cjwatson 2006-04-07: wrong for Debian, I think
    7         db_set mirror/suite "$CODENAME"
    8         db_set mirror/codename "$CODENAME"
     14if [ -e "$ORIGINAL" ];
     15        cp $ORIGINAL $SOURCES
    916fi
    1017
    11 rm -f /target/etc/apt/sources.list
    12 rm -f /target/etc/apt/sources.list.d/dvd.list
    13 PATH="/usr/lib/ubiquity/apt-setup:/usr/lib/ubiquity/choose-mirror:$PATH" \
    14         OVERRIDE_BASE_INSTALLABLE=1 OVERRIDE_LEAVE_CD_MOUNTED=1 \
    15         /usr/lib/ubiquity/apt-setup/apt-setup --log-output /target
     18if [ -d "/cdrom/pool" ]; then
     19        append_cdrom_pool > $CDROMSOURCES
     20fi
     21
     22exit 0
Note: See TracBrowser for help on using the repository browser.