~tsimonq2/debian-cd/lubuntu-cosmic-changes

« back to all changes in this revision

Viewing changes to tools/apt-selection

  • Committer: Colin Watson
  • Date: 2010-07-05 10:39:38 UTC
  • Revision ID: cjwatson@canonical.com-20100705103938-dadzsl7q1iobjwr7
be a little more careful about */debian-installer existence in pockets

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
        if [ -e "$MIRROR/dists/$DI_CODENAME/main/debian-installer" ]; then
90
90
          echo "deb file:$MIRROR $DI_CODENAME main/debian-installer" \
91
91
          >> $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
92
 
          if [ -n "$SECURITY" ]; then
 
92
          if [ -n "$SECURITY" -a -e "$MIRROR/dists/$DI_CODENAME-security/main/debian-installer" ]; then
93
93
            echo "deb file:${SECURITY:-$MIRROR} $DI_CODENAME-security main/debian-installer" \
94
94
            >> $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
95
95
          fi
96
 
          if [ "${UPDATES:-0}" != "0" ]; then
 
96
          if [ "${UPDATES:-0}" != "0" -a -e "$MIRROR/dists/$DI_CODENAME-updates/main/debian-installer" ]; then
97
97
            echo "deb file:$MIRROR $DI_CODENAME-updates main/debian-installer" \
98
98
            >> $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
99
99
          fi
100
 
          if [ "${PROPOSED:-0}" != "0" ]; then
 
100
          if [ "${PROPOSED:-0}" != "0" -a -e "$MIRROR/dists/$DI_CODENAME-proposed/main/debian-installer" ]; then
101
101
            echo "deb file:$MIRROR $DI_CODENAME-proposed main/debian-installer" \
102
102
            >> $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
103
103
          fi
105
105
        if [ "${RESTRICTED:-0}" != "0" -a -e "$MIRROR/dists/$DI_CODENAME/restricted/debian-installer" ]; then
106
106
          echo "deb file:$MIRROR $DI_CODENAME restricted/debian-installer" \
107
107
          >> $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
108
 
          if [ -n "$SECURITY" ]; then
 
108
          if [ -n "$SECURITY" -a -e "$MIRROR/dists/$DI_CODENAME-security/restricted/debian-installer" ]; then
109
109
            echo "deb file:${SECURITY:-$MIRROR} $DI_CODENAME-security restricted/debian-installer" \
110
110
            >> $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
111
111
          fi
112
 
          if [ "${UPDATES:-0}" != "0" ]; then
 
112
          if [ "${UPDATES:-0}" != "0" -a -e "$MIRROR/dists/$DI_CODENAME-updates/restricted/debian-installer" ]; then
113
113
            echo "deb file:$MIRROR $DI_CODENAME-updates restricted/debian-installer" \
114
114
            >> $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
115
115
          fi
116
 
          if [ "${PROPOSED:-0}" != "0" ]; then
 
116
          if [ "${PROPOSED:-0}" != "0" -a -e "$MIRROR/dists/$DI_CODENAME-proposed/restricted/debian-installer" ]; then
117
117
            echo "deb file:$MIRROR $DI_CODENAME-proposed restricted/debian-installer" \
118
118
            >> $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
119
119
          fi
121
121
        if [ "${UNIVERSE:-0}" != "0" -a -e "$MIRROR/dists/$DI_CODENAME/universe/debian-installer" ]; then
122
122
          echo "deb file:$MIRROR $DI_CODENAME universe/debian-installer" \
123
123
          >> $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
124
 
          if [ -n "$SECURITY" ]; then
 
124
          if [ -n "$SECURITY" -a -e "$MIRROR/dists/$DI_CODENAME-security/universe/debian-installer" ]; then
125
125
            echo "deb file:${SECURITY:-$MIRROR} $DI_CODENAME-security universe/debian-installer" \
126
126
            >> $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
127
127
          fi
128
 
          if [ "${UPDATES:-0}" != "0" ]; then
 
128
          if [ "${UPDATES:-0}" != "0" -a -e "$MIRROR/dists/$DI_CODENAME-updates/universe/debian-installer" ]; then
129
129
            echo "deb file:$MIRROR $DI_CODENAME-updates universe/debian-installer" \
130
130
            >> $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
131
131
          fi
132
 
          if [ "${PROPOSED:-0}" != "0" ]; then
 
132
          if [ "${PROPOSED:-0}" != "0" -a -e "$MIRROR/dists/$DI_CODENAME-proposed/universe/debian-installer" ]; then
133
133
            echo "deb file:$MIRROR $DI_CODENAME-proposed universe/debian-installer" \
134
134
            >> $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
135
135
          fi