summaryrefslogtreecommitdiff
path: root/repo/conf/distributions.sh
blob: 1485250f955db059616f17aa1343e906b7af0bfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh

set -eu

. ../../pgapt.conf

for DIST in $PG_REPOSITORY_DISTS ; do
	set_dist_vars $DIST
	for FLAVOR in $REPO_DIST_FLAVORS ; do
		if [ "$FLAVOR" = "." ]; then
			D="$DIST$REPO_DIST_SUFFIX"
		else
			D="$DIST$REPO_DIST_SUFFIX-$FLAVOR"
		fi
		ARCHS=$(echo $ARCHS) # strip duplicate spaces
		COMPONENTS=$(echo $COMPONENTS) # strip duplicate spaces
		cat <<EOF
Codename: $D
Suite: $D
Origin: $REPO_ORIGIN
Label: $REPO_LABEL
Architectures: source $ARCHS
Components: $COMPONENTS
SignWith: $REPO_SIGN_WITH
Log: $D.log
Uploaders: uploaders
DebIndices: Packages Release . .gz .bz2
UDebIndices: Packages . .gz .bz2
DscIndices: Sources Release .gz .bz2
Tracking: minimal includebuildinfos keepsources
Contents: percomponent nocompatsymlink
EOF
		case $FLAVOR in *testing|*snapshot)
			echo "NotAutomatic: yes"
			echo "ButAutomaticUpgrades: yes"
			;;
		esac
		echo
	done
done