Skip to content

Commit

Permalink
[backend] Create Packages.gz for debian-installer
Browse files Browse the repository at this point in the history
Create a debian-installer/ subdirectory with Packages.gz
to be used with d-i.
  • Loading branch information
Riku Voipio committed Sep 6, 2017
1 parent d47d2a4 commit b1b2912
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/backend/bs_publish
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,19 @@ sub createrepo_debian {
}
compress_and_rename("$extrep/Sources");
createrelease_debian($extrep, $projid, $repoid, $data, $options);

my $udebs="$extrep/debian-installer";
mkdir_p("$udebs") unless -d "$udebs";
if (qsystem('chdir', $udebs, 'stdout', 'Packages.new', 'dpkg-scanpackages', '-t','udeb','-m', '..', '/dev/null')) {
die(" dpkg-scanpackages for udebs failed: $?\n");
}
compress_and_rename("$udebs/Packages");

if ( -e "$udebs/Packages") {
createrelease_debian($udebs, $projid, $repoid, $data, $options);
} else {
rmdir("$udebs");
}
}

sub createrelease_debian {
Expand Down

0 comments on commit b1b2912

Please sign in to comment.