Ubuntu Pastebin

Paste from laney at Mon, 10 Aug 2015 15:27:24 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
MIRROR=/srv/transitions/mirror/ubuntu/dists
SERIES=wily
ARCHES="i386 amd64 armhf arm64 powerpc ppc64el"
COMPONENTS="main universe multiverse restricted"

for arch in ${ARCHES}; do
    OUTPUT=Packages_${arch}
    [ -e $OUTPUT ] && rm $OUTPUT
    for component in ${COMPONENTS}; do
	RELEASE=${MIRROR}/${SERIES}/${component}/binary-${arch}/Packages.gz
	PROPOSED=${MIRROR}/${SERIES}-proposed/${component}/binary-${arch}/Packages.gz
	# Get a list of all source packages in proposed
        PROPOSED_SOURCES="$(zcat ${PROPOSED} |
		grep-dctrl -n -sSource:Package . | sort -u | tr '\n' '|' | sed -r -n -e 's/ \([^\)]+\)//g; s/\|$//p')"
	zcat ${PROPOSED} >> $OUTPUT
	# and filter those binaries out of release
	if [ -n "${PROPOSED_SOURCES}" ]; then
		zcat ${RELEASE} | grep-dctrl -S -v -e "^(${PROPOSED_SOURCES})$" >> ${OUTPUT}
	else
		zcat ${RELEASE} >> ${OUTPUT}
	fi
    done
done
Download as text