diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-01 16:47:43 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-01 16:48:16 +0300 |
commit | c22fff5b931ef553f29a5cbc1b2bb6e868a74659 (patch) | |
tree | d741c630b58916a79bd81897806ccad8cbd114f2 /build/files.c | |
parent | f9740318a81bbb72cdd046a80a38116e2f7be8e4 (diff) | |
download | librpm-tizen-c22fff5b931ef553f29a5cbc1b2bb6e868a74659.tar.gz librpm-tizen-c22fff5b931ef553f29a5cbc1b2bb6e868a74659.tar.bz2 librpm-tizen-c22fff5b931ef553f29a5cbc1b2bb6e868a74659.zip |
Eliminate silly and unused timecheck feature from (lib)rpmbuild
- This was broken for years without anybody complaining, should
be safe to conclude nobody will miss it later either. And if
somebody misses it, this is a job for rpmlint really.
Diffstat (limited to 'build/files.c')
-rw-r--r-- | build/files.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/build/files.c b/build/files.c index 3f3fc5822..d2272e0ef 100644 --- a/build/files.c +++ b/build/files.c @@ -228,27 +228,6 @@ static char *strtokWithQuotes(char *s, const char *delim) /** */ -static void timeCheck(int tc, Header h) -{ - rpm_time_t * mtime; - time_t currentTime = time(NULL); - struct rpmtd_s files, mtimes; - - headerGet(h, RPMTAG_FILENAMES, &files, HEADERGET_EXT); - headerGet(h, RPMTAG_FILEMTIMES, &mtimes, HEADERGET_MINMEM); - - while ((mtime = rpmtdNextUint32(&mtimes))) { - if ((currentTime - (time_t) *mtime) > tc) { - rpmlog(RPMLOG_WARNING, _("TIMECHECK failure: %s\n"), - rpmtdGetString(&files)); - } - } - rpmtdFreeData(&files); - rpmtdFreeData(&mtimes); -} - -/** - */ typedef const struct VFA { const char const * attribute; int not; @@ -1937,9 +1916,6 @@ static rpmRC processPackageFiles(rpmSpec spec, Package pkg, genCpioListAndHeader(&fl, &pkg->cpioList, pkg->header, 0); - if (spec->timeCheck) - timeCheck(spec->timeCheck, pkg->header); - exit: fl.buildRoot = _free(fl.buildRoot); |