From: Stephan Kulow Date: Sat, 23 Feb 2008 17:00:46 +0000 (+0000) Subject: integrate the installsize in the @system, so that X-Git-Tag: BASE-SuSE-Code-12_1-Branch~867 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1e9f0761e0130818ab6c26d7ec5438cc78ffe57;p=platform%2Fupstream%2Flibsolv.git integrate the installsize in the @system, so that zypper won't claim I need additional 4GB to update to Factory --- diff --git a/tools/repo_rpmdb.c b/tools/repo_rpmdb.c index 9b33f3c..67c36cb 100644 --- a/tools/repo_rpmdb.c +++ b/tools/repo_rpmdb.c @@ -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; }