Skip to content
Commits on Source (2)
......@@ -21,8 +21,21 @@ ABORT=false
# helper functions
packages_list_to_deb822() {
ALL_PKGS=$(cat $TMPFILE | cut -d ":" -f1 | sed "s#([^()]*)##g ; s#\[[^][]*\]##g ; s#,##g ; s# #\n#g" |sort -u | tr '\n' '|')
grep-dctrl -F Package -e '^('"$ALL_PKGS"')$' $PACKAGES > $TMPFILE
script=$(cat <<'EOF'
use Dpkg::Control;
my $fd;
open($fd, '<', $ARGV[0]) or die $!;
my %packages = map { chomp; $_ => 1 } <STDIN>;
while (1) {
my $deb822 = Dpkg::Control->new();
last unless $deb822->parse($fd);
print "$deb822\n" if $packages{$deb822->{'Package'}};
}
close($fd);
EOF
)
perl -e "$script" $PACKAGES < $TMPFILE > $TMPFILE2
mv $TMPFILE2 $TMPFILE
}
tails_build_manifest_to_deb822() {
......@@ -390,6 +403,20 @@ update_pkg_set_specific() {
ABORT=true
fi
;;
pureos) # pureos
URL="https://repo.puri.sm/pureos/dists/green/main/source/Sources.gz"
echo "Downloading $URL now."
curl $URL | gunzip > $TMPFILE
if [ -s $TMPFILE ] ; then
echo "parsing $TMPFILE now..."
convert_from_deb822_into_source_packages_only
else
rm $TMPFILE
MESSAGE="Warning: could not download PureOS's Sources file, skipping pkg set..."
irc_message debian-reproducible $MESSAGE
ABORT=true
fi
;;
subgraph_OS)
# installed by Subgraph OS
# one day we will get a proper data provider from Subgraph OS...
......
......@@ -27,6 +27,8 @@ Debian distribution,grml
Debian distribution,grml_build-depends
Debian distribution,tails
Debian distribution,tails_build-depends
Debian distribution,pureos
Debian distribution,pureos_build-depends
Debian distribution,subgraph_OS
Debian distribution,subgraph_OS_build-depends
maintenance team,maint_debian-accessibility
......