From 95607af0fef23f42757daa640507b2da5e18051c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 4 Mar 2013 17:27:50 +0100 Subject: [PATCH] pakfire3: Fix database inst_size error. --- lfs/pakfire3 | 3 ++- ...t_size-column-when-creating-new-data.patch | 24 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 src/patches/pakfire-database-Add-inst_size-column-when-creating-new-data.patch diff --git a/lfs/pakfire3 b/lfs/pakfire3 index d31c1834e..8fb810d88 100644 --- a/lfs/pakfire3 +++ b/lfs/pakfire3 @@ -32,7 +32,7 @@ DL_FROM = http://source.ipfire.org/releases/pakfire/ DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = pakfire3 -PAK_VER = 3 +PAK_VER = 4 DEPS = "libsolv pycurl pygpgme python-progressbar python-xattr sqlite urlgrabber" @@ -78,6 +78,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/pakfire3-changes-for-ipfire2.diff + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/pakfire-database-Add-inst_size-column-when-creating-new-data.patch cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install rm -vf /usr/bin/pakfire3 diff --git a/src/patches/pakfire-database-Add-inst_size-column-when-creating-new-data.patch b/src/patches/pakfire-database-Add-inst_size-column-when-creating-new-data.patch new file mode 100644 index 000000000..f366f216d --- /dev/null +++ b/src/patches/pakfire-database-Add-inst_size-column-when-creating-new-data.patch @@ -0,0 +1,24 @@ +From 0d6d6fd2b89c609a6f8daff225c6c98b54a041cc Mon Sep 17 00:00:00 2001 +From: Michael Tremer +Date: Mon, 4 Mar 2013 17:18:52 +0100 +Subject: [PATCH] database: Add inst_size column when creating new databases. + +--- + python/pakfire/repository/database.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/python/pakfire/repository/database.py b/python/pakfire/repository/database.py +index fc8a1a9..d8751e9 100644 +--- a/python/pakfire/repository/database.py ++++ b/python/pakfire/repository/database.py +@@ -190,6 +190,7 @@ class DatabaseLocal(Database): + groups TEXT, + filename TEXT, + size INTEGER, ++ inst_size INTEGER, + hash1 TEXT, + provides TEXT, + requires TEXT, +-- +1.7.11.7 + -- 2.39.2