From: Panu Matilainen Date: Mon, 22 Feb 2010 09:45:28 +0000 (+0200) Subject: Remove unused os and arch score from transaction elements X-Git-Tag: tznext/4.11.0.1.tizen20130304~2293 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f630758dccf462bfbdf8cc0672e4bf87859b50e9;p=tools%2Flibrpm-tizen.git Remove unused os and arch score from transaction elements --- diff --git a/lib/rpmte.c b/lib/rpmte.c index 0e38430..9702484 100644 --- a/lib/rpmte.c +++ b/lib/rpmte.c @@ -32,8 +32,6 @@ struct rpmte_s { char * release; /*!< Release: */ char * arch; /*!< Architecture hint. */ char * os; /*!< Operating system hint. */ - int archScore; /*!< (TR_ADDED) Arch score. */ - int osScore; /*!< (TR_ADDED) Os score. */ int isSource; /*!< (TR_ADDED) source rpm? */ rpmte depends; /*!< Package updated by this package (ERASE te) */ @@ -233,10 +231,7 @@ static void addTE(rpmte p, Header h, fnpyKey key, rpmRelocation * relocs) p->epoch = headerGetAsString(h, RPMTAG_EPOCH); p->arch = headerGetAsString(h, RPMTAG_ARCH); - p->archScore = p->arch ? rpmMachineScore(RPM_MACHTABLE_INSTARCH, p->arch) : 0; - p->os = headerGetAsString(h, RPMTAG_OS); - p->osScore = p->os ? rpmMachineScore(RPM_MACHTABLE_INSTOS, p->os) : 0; p->isSource = headerIsSource(h);