Ales Kozumplik f4c7379
From 6b63ea994945195f02d8a04d2786959ed438f484 Mon Sep 17 00:00:00 2001
Ales Kozumplik f4c7379
From: Ales Kozumplik <akozumpl@redhat.com>
Ales Kozumplik f4c7379
Date: Thu, 12 Apr 2012 10:29:28 +0200
Ales Kozumplik f4c7379
Subject: [PATCH] make repo_add_solv() work without stub repodata.
Ales Kozumplik f4c7379
Ales Kozumplik f4c7379
---
Ales Kozumplik f4c7379
 src/repo_solv.c |    7 ++++++-
Ales Kozumplik f4c7379
 1 files changed, 6 insertions(+), 1 deletions(-)
Ales Kozumplik f4c7379
Ales Kozumplik f4c7379
diff --git a/src/repo_solv.c b/src/repo_solv.c
Ales Kozumplik f4c7379
index 3f391ef..4e632ae 100644
Ales Kozumplik f4c7379
--- a/src/repo_solv.c
Ales Kozumplik f4c7379
+++ b/src/repo_solv.c
Ales Kozumplik f4c7379
@@ -514,7 +514,12 @@ repo_add_solv(Repo *repo, FILE *fp, int flags)
Ales Kozumplik f4c7379
       extendstart = repo->start;
Ales Kozumplik f4c7379
       extendend = repo->end;
Ales Kozumplik f4c7379
     }
Ales Kozumplik f4c7379
-    
Ales Kozumplik f4c7379
+  else if ((flags & REPO_EXTEND_SOLVABLES) != 0)
Ales Kozumplik f4c7379
+    {
Ales Kozumplik f4c7379
+      parent = repo_add_repodata(repo, flags);
Ales Kozumplik f4c7379
+      repodata_extend_block(parent, repo->start, repo->nsolvables);
Ales Kozumplik f4c7379
+    }
Ales Kozumplik f4c7379
+
Ales Kozumplik f4c7379
   memset(&data, 0, sizeof(data));
Ales Kozumplik f4c7379
   data.repo = repo;
Ales Kozumplik f4c7379
   data.fp = fp;
Ales Kozumplik f4c7379
-- 
Ales Kozumplik f4c7379
1.7.7.3
Ales Kozumplik f4c7379