integrate the installsize in the @system, so that
authorStephan Kulow <coolo@suse.de>
Sat, 23 Feb 2008 17:00:46 +0000 (17:00 +0000)
committerStephan Kulow <coolo@suse.de>
Sat, 23 Feb 2008 17:00:46 +0000 (17:00 +0000)
zypper won't claim I need additional 4GB to update
to Factory

tools/repo_rpmdb.c

index 9b33f3c..67c36cb 100644 (file)
@@ -38,6 +38,7 @@
 #define TAG_SUMMARY            1004
 #define TAG_DESCRIPTION                1005
 #define TAG_BUILDTIME          1006
+#define TAG_SIZE                1009
 #define TAG_VENDOR             1011
 #define TAG_GROUP              1016
 #define TAG_ARCH               1022
@@ -688,6 +689,10 @@ rpm2solv(Pool *pool, Repo *repo, Repodata *repodata, Solvable *s, RpmHead *rpmhe
       u32 = headint32(rpmhead, TAG_BUILDTIME);
       if (u32)
         repodata_set_num(repodata, entry, id_time, u32);
+      u32 = headint32(rpmhead, TAG_SIZE);
+      if (u32)
+        repodata_set_num(repodata, entry, id_installsize, u32);
+
     }
   return 1;
 }