diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-03-29 14:53:10 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-03-29 14:53:10 +0300 |
commit | e18d9e68260aacde0d1fe1f0fdddb008357262fe (patch) | |
tree | 0957841023a5716d5fc99a1a9ecbcbe66498638e /lib/rpmds.c | |
parent | 6ba22ca0d9f9de9ee358111f457bdbe323e263b9 (diff) | |
download | librpm-tizen-e18d9e68260aacde0d1fe1f0fdddb008357262fe.tar.gz librpm-tizen-e18d9e68260aacde0d1fe1f0fdddb008357262fe.tar.bz2 librpm-tizen-e18d9e68260aacde0d1fe1f0fdddb008357262fe.zip |
Remove unused and non-sensible depedency set build-time
- Buildtime was never part of rpm version comparison nor should it be,
on rpm level the only sensible differentiator between two identical
dependencies is the dependency color if any. Other than that, random()
just as "appropriate" as build time.
Diffstat (limited to 'lib/rpmds.c')
-rw-r--r-- | lib/rpmds.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/rpmds.c b/lib/rpmds.c index faf0ba585..141dd4824 100644 --- a/lib/rpmds.c +++ b/lib/rpmds.c @@ -26,7 +26,6 @@ struct rpmds_s { rpmsenseFlags * Flags; /*!< Bit(s) identifying context/comparison. */ rpm_color_t * Color; /*!< Bit(s) calculated from file color(s). */ int32_t * Refs; /*!< No. of file refs. */ - time_t BT; /*!< Package build time tie breaker. */ rpmTag tagN; /*!< Header tag. */ int32_t Count; /*!< No. of elements */ unsigned int instance; /*!< From rpmdb instance? */ @@ -156,7 +155,6 @@ rpmds rpmdsNew(Header h, rpmTag tagN, int flags) } } - ds->BT = headerGetNumber(h, RPMTAG_BUILDTIME); ds->Color = xcalloc(ds->Count, sizeof(*ds->Color)); ds->Refs = xcalloc(ds->Count, sizeof(*ds->Refs)); ds = rpmdsLink(ds); @@ -222,7 +220,6 @@ static rpmds singleDS(rpmTag tagN, const char * N, const char * EVR, ds = xcalloc(1, sizeof(*ds)); ds->Type = Type; ds->tagN = tagN; - ds->BT = time(NULL); ds->Count = 1; ds->nopromote = _rpmds_nopromote; ds->instance = instance; @@ -340,24 +337,6 @@ rpmTag rpmdsTagN(const rpmds ds) return tagN; } -time_t rpmdsBT(const rpmds ds) -{ - time_t BT = 0; - if (ds != NULL && ds->BT > 0) - BT = ds->BT; - return BT; -} - -time_t rpmdsSetBT(const rpmds ds, time_t BT) -{ - time_t oBT = 0; - if (ds != NULL) { - oBT = ds->BT; - ds->BT = BT; - } - return oBT; -} - unsigned int rpmdsInstance(rpmds ds) { return (ds != NULL) ? ds->instance : 0; |