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

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



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



Reply to: