make_disc_trees: create Packages files for local/debian-installer. Closes: #523017

tools/make_disc_trees.pl: Apply patch by Daniel Dickinson to create Packages
files for local/debian-installer. Closes: #523017

Signed-off-by: Holger Levsen <holger@layer-acht.org>
This commit is contained in:
Holger Levsen 2021-02-03 17:36:13 +01:00
parent 0985d5342b
commit 9c8fc62807
2 changed files with 11 additions and 5 deletions

2
debian/changelog vendored
View File

@ -9,6 +9,8 @@ debian-cd (3.1.33) UNRELEASED; urgency=medium
compressed Packages files. Closes: #968668
* tools/start_new_disc: Apply patch by JH Chatenet to include local Release
file for debian-installer. Closes: #968671
* tools/make_disc_trees: Apply patch by Daniel Dickinson to create Packages
files for local/debian-installer. Closes: #523017
-- Wolfgang Schweer <wschweer@arcor.de> Tue, 02 Feb 2021 13:36:04 +0100

View File

@ -602,11 +602,15 @@ sub add_missing_Packages {
$filename = $File::Find::name;
if ((-d "$_") && ($filename =~ m/\/main\/binary-[^\/]*$/)) {
if ((-f "$_/Packages") && (! -d "../local/$_/")) {
mkdir "../local/$_/" || die "Error creating directory local/$_: $!\n";
open(LPFILE, ">../local/$_/Packages") or die "Error creating local/$_/Packages: $!\n";
close LPFILE;
print " Created empty Packages file for local/$_\n";
if (-f "$_/Packages") {
if (! -d "../local/$_/") {
mkdir "../local/$_/" || die "Error creating directory local/$_: $!\n";
}
if ( ! -f "../local/$_/Packages" ) {
open(LPFILE, ">../local/$_/Packages") or die "Error creating local/$_/Packages: $!\n";
close LPFILE;
print " Created empty Packages file for local/$_\n";
}
}
}
}