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:
parent
0985d5342b
commit
9c8fc62807
|
@ -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
|
||||
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue