Merge ~mwhudson/debian-cd/+git/ubuntu:no-local into ~ubuntu-cdimage/debian-cd/+git/ubuntu:main

Proposed by Michael Hudson-Doyle
Status: Merged
Merged at revision: 78d187ac0fa0df4205c660fa1455bfc50df492d9
Proposed branch: ~mwhudson/debian-cd/+git/ubuntu:no-local
Merge into: ~ubuntu-cdimage/debian-cd/+git/ubuntu:main
Diff against target: 276 lines (+6/-103)
11 files modified
CONF.sh (+0/-13)
Makefile (+2/-16)
README (+0/-20)
tools/add_dirs (+0/-14)
tools/add_packages (+0/-3)
tools/apt-selection (+0/-7)
tools/list2cds (+0/-1)
tools/list2src (+0/-7)
tools/scanpackages (+4/-16)
tools/scansources (+0/-3)
tools/sorting_weights (+0/-3)
Reviewer Review Type Date Requested Status
Steve Langasek Approve
Review via email: mp+456833@code.launchpad.net

Commit message

remove support for local debs

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/CONF.sh b/CONF.sh
2index 1d12ad8..18250fc 100644
3--- a/CONF.sh
4+++ b/CONF.sh
5@@ -9,9 +9,6 @@ unset EXTRANONFREE || true
6 unset RESTRICTED || true
7 unset UNIVERSE || true
8 unset MULTIVERSE || true
9-# allow configuration on command line
10-#unset LOCAL || true
11-#unset LOCALDEBS || true
12 unset SECURED || true
13 unset GPG_HOMEDIR || true
14 unset SIGNING_KEYID || true
15@@ -182,16 +179,6 @@ if [ "$CDIMAGE_UNSUPPORTED" ]; then
16 fi
17 fi
18
19-# If you have a $MIRROR/dists/$CODENAME/local/binary-$ARCH dir with
20-# local packages that you want to put on the CD set then
21-# uncomment the following line
22-# export LOCAL=1
23-
24-# If your local packages are not under $MIRROR, but somewhere else,
25-# you can uncomment this line and edit to to point to a directory
26-# containing dists/$CODENAME/local/binary-$ARCH
27-# export LOCALDEBS=$CDIMAGE_ROOT/local/packages
28-
29 case $DIST in
30 warty) ;;
31 hoary|breezy|dapper|edgy|feisty|gutsy|hardy|intrepid|jaunty|karmic|lucid|maverick|natty|oneiric|precise|quantal|raring|saucy|trusty|utopic|vivid|wily)
32diff --git a/Makefile b/Makefile
33index b4888ad..b87b8a3 100644
34--- a/Makefile
35+++ b/Makefile
36@@ -512,23 +512,9 @@ $(SDIR)/sources-stamp:
37 dir=$(SDIR)/CD$$n; \
38 echo -n "$$n ... "; \
39 echo -n "main ... "; \
40- grep -vE "/local/" $$i > $$i.main || true ; \
41- if [ -s $$i.main ] ; then \
42- cat $$i.main | xargs $(add_files) $$dir $(MIRROR); \
43+ if [ -s $$i ] ; then \
44+ cat $$i | xargs $(add_files) $$dir $(MIRROR); \
45 fi ; \
46- if [ -n "$(LOCAL)" ]; then \
47- echo -n "local ... "; \
48- grep "/local/" $$i > $$i.local || true ; \
49- if [ -s $$i.local ] ; then \
50- if [ -n "$(LOCALDEBS)" ] ; then \
51- cat $$i.local | xargs $(add_files) \
52- $$dir $(LOCALDEBS); \
53- else \
54- cat $$i.local | xargs $(add_files) \
55- $$dir $(MIRROR); \
56- fi; \
57- fi; \
58- fi; \
59 $(scansources) $$dir; \
60 echo "done."; \
61 done
62diff --git a/README b/README
63index 8513768..9b93084 100644
64--- a/README
65+++ b/README
66@@ -232,26 +232,6 @@ can use build_all.sh to build your "Unofficial" images without modifying
67 anything.
68
69
70-Local packages
71-==============
72-
73-If you provide some custom made packages and you want to put them on
74-Debian CD set you can do it. Simply put your packages in
75-$MIRROR/dists/$CODENAME/local/binary-$ARCH/<section>.
76-The organization of this sub-tree is the same than what you can find
77-in the main, contrib or non-free part. You may use different section
78-names if you want. Be sure to create Packages files (and Sources.gz if you
79-include sources).
80-
81-You can also put your local packages under $MIRROR/pool/local (just a new
82-facility for people who don't want packages under dists/). To include local
83-packages, the LOCAL environment variable must be set to "1" while building
84-the CDs.
85-
86-You can also set the LOCALDEBS environment variable, and it will be used
87-instead of MIRROR when looking for local packages.
88-
89-
90 Additional targets
91 ==================
92
93diff --git a/tools/add_dirs b/tools/add_dirs
94index a4a9e0c..4262920 100755
95--- a/tools/add_dirs
96+++ b/tools/add_dirs
97@@ -28,13 +28,6 @@ if [ ! -d dists/$CODENAME ] ; then
98 done
99 fi
100
101-# Commodity link for tools which want local in dists/local/local ...
102-if [ -n "$LOCAL" ]
103-then
104- ln -sf $CODENAME dists/local
105-fi
106-
107-
108 if [ ! -d .disk ] ; then
109 mkdir .disk
110 fi
111@@ -78,10 +71,3 @@ if [ "${MULTIVERSE:-0}" != "0" ]; then
112 done
113 mkdir -p dists/$CODENAME/multiverse/source
114 fi
115-
116-if [ -n "$LOCAL" ]; then
117- for ONE_ARCH in $ALL_ARCHES; do
118- mkdir -p dists/$CODENAME/local/binary-$ONE_ARCH
119- done
120- mkdir -p dists/$CODENAME/local/source
121-fi
122diff --git a/tools/add_packages b/tools/add_packages
123index 80443db..f3ff4d7 100755
124--- a/tools/add_packages
125+++ b/tools/add_packages
126@@ -8,9 +8,6 @@ if (! -d $dir) {
127 die "$dir is not a directory ...";
128 }
129
130-my $mirror = $ENV{'MIRROR'} || die "Set the MIRROR var ...\n";
131-my $localdebs = $ENV{'LOCALDEBS'} || $mirror;
132-my $security = $ENV{'SECURITY'} || $mirror;
133 my $basedir = $ENV{'BASEDIR'} || die "Set the BASEDIR var ...\n";
134
135 open (LIST, "$basedir/tools/apt-selection cache show @ARGV |")
136diff --git a/tools/apt-selection b/tools/apt-selection
137index 582f7da..76e8c5a 100755
138--- a/tools/apt-selection
139+++ b/tools/apt-selection
140@@ -80,13 +80,6 @@ if [ ! -e "$APTTMP/$CODENAME-$FULLARCH/apt/sources.list" ]; then
141 > $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
142 echo "deb-src $SCHEMA$MIRROR $CODENAME $sections" \
143 >> $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
144- # Local packages ...
145- if [ -n "$LOCAL" ]; then
146- echo "deb $SCHEMA${LOCALDEBS:-$MIRROR} $CODENAME local" \
147- >> $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
148- echo "deb-src $SCHEMA${LOCALDEBS:-$MIRROR} $CODENAME local" \
149- >> $APTTMP/$CODENAME-$FULLARCH/apt/sources.list
150- fi
151 # Security mirror ...
152 if [ -n "$SECURITY" ]; then
153 echo "deb $SCHEMA${SECURITY:-$MIRROR} $CODENAME-security $sections" \
154diff --git a/tools/list2cds b/tools/list2cds
155index d8b17e3..d45f2f4 100755
156--- a/tools/list2cds
157+++ b/tools/list2cds
158@@ -16,7 +16,6 @@ my $limit = $ENV{'SIZELIMIT1'} || $deflimit;
159
160 my $nonfree = $ENV{'NONFREE'} || 0;
161 my $extranonfree = $ENV{'EXTRANONFREE'} || 0;
162-my $local = $ENV{'LOCAL'} || 0;
163 my $complete = $ENV{'COMPLETE'} || 0;
164 my $exclude = "$list.exclude";
165 my $nodepends = $ENV{'NODEPENDS'} || 0;
166diff --git a/tools/list2src b/tools/list2src
167index 8923ff8..1ee265e 100755
168--- a/tools/list2src
169+++ b/tools/list2src
170@@ -19,7 +19,6 @@ my $nonfree = $ENV{'NONFREE'} || 0;
171 my $extranonfree = $ENV{'EXTRANONFREE'} || 0;
172 my $contrib = $ENV{'CONTRIB'} || 0;
173 my $complete = $ENV{'COMPLETE'} || 0;
174-my $local = $ENV{'LOCAL'} || 0;
175 my $universe = $ENV{'UNIVERSE'} || 0;
176 my $multiverse = $ENV{'MULTIVERSE'} || 0;
177 my $restricted = $ENV{'RESTRICTED'} || 0;
178@@ -32,7 +31,6 @@ my $verbose = $ENV{'VERBOSE'} || 0;
179
180 my $apt_lists = "$ENV{'APT_STATE'}/lists";
181 my $mirror = $ENV{'MIRROR'};
182-my $localdebs = $ENV{'LOCALDEBS'} || $mirror;
183 my $codename = $ENV{'CODENAME'};
184
185 $| = 1;
186@@ -77,11 +75,6 @@ if ($nonfree or $extranonfree) {
187 push @SOURCES, "$mirror/dists/$codename/non-free/source/Sources.gz";
188 }
189
190-if ($local and -e "$localdebs/dists/$codename/local/source/Sources.gz")
191-{
192- push @SOURCES, "$localdebs/dists/$codename/local/source/Sources.gz";
193-}
194-
195 foreach (@SOURCES) {
196 die "File `$_' cannot be found ..." if not -f;
197 }
198diff --git a/tools/scanpackages b/tools/scanpackages
199index 60dd66d..60cb994 100755
200--- a/tools/scanpackages
201+++ b/tools/scanpackages
202@@ -32,10 +32,6 @@ fi
203
204 COMPONENTS="$SECTIONS"
205
206-if [ -n "$LOCAL" ]; then
207- SECTIONS="$SECTIONS local"
208-fi
209-
210 ALL_ARCHES="$ARCH"
211 if [ -e "$BASEDIR/data/$CODENAME/multiarch/$ARCH" ]; then
212 ALL_ARCHES="$ALL_ARCHES $(cat "$BASEDIR/data/$CODENAME/multiarch/$ARCH")"
213@@ -97,22 +93,17 @@ for i in `cd dists; echo *; cd ..`; do
214 done
215 # Creating the file lists
216 for SECT in $SECTIONS; do
217- if [ "$SECT" = local ]; then
218- OUTSECT=main
219- else
220- OUTSECT="$SECT"
221- fi
222- touch $PREFIX.filelist_$OUTSECT
223+ touch $PREFIX.filelist_$SECT
224 if [ -d "pool/$SECT" ]; then
225- find pool/$SECT | sort >>$PREFIX.filelist_$OUTSECT
226+ find pool/$SECT | sort >>$PREFIX.filelist_$SECT
227 fi
228 if [ -d "pool/unstable/$SECT" ]; then
229- find pool/unstable/$SECT | sort >>$PREFIX.filelist_$OUTSECT
230+ find pool/unstable/$SECT | sort >>$PREFIX.filelist_$SECT
231 fi
232 for DIST in $DISTS; do
233 for ONE_ARCH in $ALL_ARCHES; do
234 if [ -d "dists/$DIST/$SECT/binary-$ONE_ARCH" ]; then
235- find dists/$DIST/$SECT/binary-$ONE_ARCH | sort >>$PREFIX.filelist_$OUTSECT
236+ find dists/$DIST/$SECT/binary-$ONE_ARCH | sort >>$PREFIX.filelist_$SECT
237 fi
238 done
239 done
240@@ -148,9 +139,6 @@ if [ ! -d "$BDIR/indices" ]; then
241 cp $MIRROR/indices/* $BDIR/indices/
242 ;;
243 esac
244- if [ -n "$LOCALDEBS" -a -d $LOCALDEBS/indices ]; then
245- cp $LOCALDEBS/indices/* $BDIR/indices/
246- fi
247 #gunzip -f $BDIR/indices/*.gz
248 for SECT in $SECTIONS; do
249 touch $BDIR/indices/override.$CODENAME.$SECT
250diff --git a/tools/scansources b/tools/scansources
251index 8097806..6a84317 100755
252--- a/tools/scansources
253+++ b/tools/scansources
254@@ -102,9 +102,6 @@ if [ ! -d "$SDIR/indices" ]; then
255 cp $MIRROR/indices/* $SDIR/indices/
256 ;;
257 esac
258- if [ -n "$LOCALDEBS" -a -d $LOCALDEBS/indices ]; then
259- cp $LOCALDEBS/indices/* $SDIR/indices/
260- fi
261 #gunzip -f $SDIR/indices/*.gz
262 for SECT in $SECTIONS; do
263 touch $SDIR/indices/override.$CODENAME.$SECT
264diff --git a/tools/sorting_weights b/tools/sorting_weights
265index 17faf62..ae4df73 100755
266--- a/tools/sorting_weights
267+++ b/tools/sorting_weights
268@@ -26,9 +26,6 @@ fi
269 if [ "${MULTIVERSE:-0}" != 0 ]; then
270 SECTIONS="$SECTIONS multiverse"
271 fi
272-if [ "$LOCAL" ]; then
273- SECTIONS="$SECTIONS local"
274-fi
275
276 rm -f "$BDIR/$CD.weights_in" "$BDIR/$CD.weights"
277

Subscribers

People subscribed via source and target branches