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

Re: [PATCH 3/3] Create dpkg status file before calling APT



On Tue, Aug 07, 2007 at 09:15:27PM -0300, Otavio Salvador wrote:
>From: Otavio Salvador <otavio@ossystems.com.br>
>
>APT uses the dpkg status file and then we should make an empty file if
>it doesn't exists.
>
>Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
>---
>
> debian/changelog    |    1 +
> tools/apt-selection |    3 +++
> 2 files changed, 4 insertions(+), 0 deletions(-)
>
>diff --git a/debian/changelog b/debian/changelog
>index 68f9411..e7d0769 100644
>--- a/debian/changelog
>+++ b/debian/changelog
>@@ -62,6 +62,7 @@ debian-cd (3.0.3) UNRELEASED; urgency=low
>     behaviour (default to false)
>   * Use DEBOOTSTRAP_SCRIPT, BASE_INCLUDE and BASE_EXCLUDE variables to
>     calculate the base packages set
>+  * Create dpkg status file before calling APT
> 
>  -- Joey Hess <joeyh@debian.org>  Wed, 01 Aug 2007 23:47:14 -0400
> 
>diff --git a/tools/apt-selection b/tools/apt-selection
>index 5e04649..b651584 100755
>--- a/tools/apt-selection
>+++ b/tools/apt-selection
>@@ -52,6 +52,9 @@ fi
> if [ ! -d "$APTTMP/$CODENAME-$ARCH/apt" ]; then
> 	mkdir -p "$APTTMP/$CODENAME-$ARCH/apt"
> fi
>+if [ ! -e "$APTTMP/$CODENAME-$ARCH/status" ]; then
>+	touch "$APTTMP/$CODENAME-$ARCH/status"
>+fi
> if [ ! -e "$APTTMP/$CODENAME-$ARCH/apt/sources.list" ]; then
> 
> 	# Generating a correct sources.list file

And I thought we spoke about this last time - other places in
debian-cd should already be making the status file (in several places
in the Makefile). Are you calling things significantly differently?

-- 
Steve McIntyre, Cambridge, UK.                                steve@einval.com
"This dress doesn't reverse." -- Alden Spiess



Reply to: