X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=pakfire%2Fpatches%2F0001-Fix-accessing-index-data-after-the-transaction-is-do.patch;fp=pakfire%2Fpatches%2F0001-Fix-accessing-index-data-after-the-transaction-is-do.patch;h=0000000000000000000000000000000000000000;hb=cb570e99064e25ae4f39b6299fa911db9d267fa1;hp=4324d8aef263eff1483d326100af2bbfaab79bef;hpb=3a64a15f1eb94f4e82d7bb6fe413d4cee05f3456;p=people%2Fms%2Fipfire-3.x.git diff --git a/pakfire/patches/0001-Fix-accessing-index-data-after-the-transaction-is-do.patch b/pakfire/patches/0001-Fix-accessing-index-data-after-the-transaction-is-do.patch deleted file mode 100644 index 4324d8aef..000000000 --- a/pakfire/patches/0001-Fix-accessing-index-data-after-the-transaction-is-do.patch +++ /dev/null @@ -1,40 +0,0 @@ -From b856696a0a8173eaacdd03833971272de06118ce Mon Sep 17 00:00:00 2001 -From: Michael Tremer -Date: Sat, 14 Apr 2012 21:16:30 +0200 -Subject: [PATCH 01/16] Fix accessing index data after the transaction is - done. - ---- - python/pakfire/client/builder.py | 1 + - python/pakfire/repository/system.py | 3 +++ - 2 files changed, 4 insertions(+) - -diff --git a/python/pakfire/client/builder.py b/python/pakfire/client/builder.py -index a039e65..2ade5dc 100644 ---- a/python/pakfire/client/builder.py -+++ b/python/pakfire/client/builder.py -@@ -334,6 +334,7 @@ class ClientBuilder(object): - pkgs = [] - - for pkg in installed_packages: -+ assert pkg.uuid, "%s has got no UUID" - pkgs.append((pkg.friendly_name, pkg.uuid)) - - return self.conn.build_upload_buildroot(self.build_id, pkgs) -diff --git a/python/pakfire/repository/system.py b/python/pakfire/repository/system.py -index 642c4bd..5dcdd04 100644 ---- a/python/pakfire/repository/system.py -+++ b/python/pakfire/repository/system.py -@@ -52,6 +52,9 @@ class RepositorySystem(base.RepositoryFactory): - # Commit the database to disk. - self.db.commit() - -+ # Make sure that all data in the index is accessable. -+ self.index.optimize() -+ - def add_package(self, pkg): - # Add package to the database. - self.db.add_package(pkg) --- -1.7.10.4 -