add more support for contrib exclusion
This commit is contained in:
parent
916440cf9a
commit
07fcb55774
|
@ -36,8 +36,10 @@ fi
|
|||
|
||||
mkdir -p dists/$CODENAME/main/binary-$ARCH
|
||||
mkdir -p dists/$CODENAME/main/source
|
||||
mkdir -p dists/$CODENAME/contrib/binary-$ARCH
|
||||
mkdir -p dists/$CODENAME/contrib/source
|
||||
if [ "${CONTRIB:-0}" != 0 ]; then
|
||||
mkdir -p dists/$CODENAME/contrib/binary-$ARCH
|
||||
mkdir -p dists/$CODENAME/contrib/source
|
||||
fi
|
||||
if [ "${NONFREE:-0}" != "0" ]; then
|
||||
mkdir -p dists/$CODENAME/non-free/binary-$ARCH
|
||||
mkdir -p dists/$CODENAME/non-free/source
|
||||
|
@ -49,8 +51,10 @@ fi
|
|||
if [ -n "$SECURITY" ]; then
|
||||
mkdir -p dists/$CODENAME/updates/main/binary-$ARCH
|
||||
mkdir -p dists/$CODENAME/updates/main/source
|
||||
mkdir -p dists/$CODENAME/updates/contrib/binary-$ARCH
|
||||
mkdir -p dists/$CODENAME/updates/contrib/source
|
||||
if [ "${CONTRIB:-0}" != "0" ]; then
|
||||
mkdir -p dists/$CODENAME/updates/contrib/binary-$ARCH
|
||||
mkdir -p dists/$CODENAME/updates/contrib/source
|
||||
fi
|
||||
if [ "${NONFREE:-0}" != "0" ]; then
|
||||
mkdir -p dists/$CODENAME/updates/non-free/binary-$ARCH
|
||||
mkdir -p dists/$CODENAME/updates/non-free/source
|
||||
|
@ -60,8 +64,10 @@ fi
|
|||
if [ -n "$NONUS" ]; then
|
||||
mkdir -p dists/$CODENAME/non-US/main/binary-$ARCH
|
||||
mkdir -p dists/$CODENAME/non-US/main/source
|
||||
mkdir -p dists/$CODENAME/non-US/contrib/binary-$ARCH
|
||||
mkdir -p dists/$CODENAME/non-US/contrib/source
|
||||
if [ "${CONTRIB:-0}" != "0" ]; then
|
||||
mkdir -p dists/$CODENAME/non-US/contrib/binary-$ARCH
|
||||
mkdir -p dists/$CODENAME/non-US/contrib/source
|
||||
fi
|
||||
if [ "${NONFREE:-0}" != "0" ]; then
|
||||
mkdir -p dists/$CODENAME/non-US/non-free/binary-$ARCH
|
||||
mkdir -p dists/$CODENAME/non-US/non-free/source
|
||||
|
|
|
@ -18,6 +18,7 @@ my $nonfree = $ENV{'NONFREE'} || 0;
|
|||
my $extranonfree = $ENV{'EXTRANONFREE'} || 0;
|
||||
my $nonus = $ENV{'NONUS'} || 0;
|
||||
my $forcenonusoncd1 = $ENV{'FORCENONUSONCD1'} || 0;
|
||||
my $contrib = $ENV{'CONTRIB'} || 0;
|
||||
my $complete = $ENV{'COMPLETE'} || 0;
|
||||
my $local = $ENV{'LOCAL'} || 0;
|
||||
|
||||
|
@ -50,13 +51,18 @@ my @nonuslist=();
|
|||
my %includesrc;
|
||||
|
||||
# Get the information from the good Sources.gz files
|
||||
my @SOURCES = ("$mirror/dists/$codename/main/source/Sources.gz",
|
||||
"$mirror/dists/$codename/contrib/source/Sources.gz");
|
||||
my @SOURCES = ("$mirror/dists/$codename/main/source/Sources.gz");
|
||||
|
||||
if ($contrib) {
|
||||
push @SOURCES, "$mirror/dists/$codename/contrib/source/Sources.gz";
|
||||
}
|
||||
|
||||
if ($nonus) {
|
||||
push @SOURCES,
|
||||
"$nonus/dists/$codename/non-US/main/source/Sources.gz",
|
||||
"$nonus/dists/$codename/non-US/contrib/source/Sources.gz";
|
||||
push @SOURCES, "$nonus/dists/$codename/non-US/main/source/Sources.gz";
|
||||
if ($contrib) {
|
||||
push @SOURCES,
|
||||
"$nonus/dists/$codename/non-US/contrib/source/Sources.gz";
|
||||
}
|
||||
}
|
||||
if ($nonfree or $extranonfree) {
|
||||
push @SOURCES, "$mirror/dists/$codename/non-free/source/Sources.gz";
|
||||
|
|
|
@ -11,10 +11,12 @@ set -e
|
|||
SDIR=$TDIR/$CODENAME-src
|
||||
PREFIX=`echo $1 | sed "s?$SDIR/CD?$SDIR/?"`
|
||||
|
||||
SECTIONS="main"
|
||||
if [ "${NONFREE:-0}" != "0" -o "${EXTRANONFREE:-0}" != "0" ]; then
|
||||
SECTIONS="main contrib non-free"
|
||||
else
|
||||
SECTIONS="main contrib"
|
||||
SECTIONS="${SECTIONS} non-free"
|
||||
fi
|
||||
fi [ "${CONTRIB:-0}" != "0" ]; then
|
||||
SECTIONS="${SECTIONS} contrib"
|
||||
fi
|
||||
|
||||
cd $1
|
||||
|
|
Loading…
Reference in New Issue