[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#770637: Config script cannot create live.list.chroot file



Package: live-build
Version: 4.0.3-1

The config script cannot create the file
config/package-lists/live.list.chroot and thus generates an error and
aborts, when the following two conditions are met:

1. You need to use the --clean option, either on the command line, or in
an auto/config file.
2. The config/package-lists directory does not exist, or at least it
must be empty.

Explanation:
The config script creates the config/package-lists directory amongst
others. If you have supplied the --clean option, it later removes some
directories, including this one, if they are empty. Then later still, it
tries to create a file in this directory, but fails because the folder,
under these particular circumstances, does not exist at that point.

As discussed on the mailing list:
https://lists.debian.org/debian-live/2014/11/msg00055.html

A patch built against debian-next is attached.
From c389bf6c04b7bbac133808b754eb83648f41f9d8 Mon Sep 17 00:00:00 2001
From: jnqnfe <jnqnfe@gmail.com>
Date: Sat, 22 Nov 2014 19:32:45 +0000
Subject: [PATCH] Fix creation of config/package-lists/live.list.chroot in
 cases where --clean parameter used with lb config command and the directory
 is empty.

---
 scripts/build/config | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/build/config b/scripts/build/config
index e3b1e51..d79b06d 100755
--- a/scripts/build/config
+++ b/scripts/build/config
@@ -1351,6 +1351,7 @@ do
 	fi
 done
 
+mkdir -p config/package-lists
 if [ ! -e config/package-lists/live.list.chroot ]
 then
 
-- 
1.9.4.msysgit.0


Reply to: