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

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



On Tue, Feb 06, 2007 at 08:45:01AM -0200, 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>
>---
>
> tools/apt-selection |    3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
>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

Hmmm. I'm curious why you need this - the Makefile code in the
$(ADIR)/status: target should be making the status file as needed,
surely?

-- 
Steve McIntyre, Cambridge, UK.                                steve@einval.com
There's no sensation to compare with this
Suspended animation, A state of bliss

Attachment: signature.asc
Description: Digital signature


Reply to: