diff options
-rw-r--r-- | build/files.c | 24 | ||||
-rw-r--r-- | build/parseSpec.c | 2 | ||||
-rw-r--r-- | build/rpmspec.h | 2 | ||||
-rw-r--r-- | build/spec.c | 2 | ||||
-rw-r--r-- | rpmpopt.in | 1 |
5 files changed, 0 insertions, 31 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); diff --git a/build/parseSpec.c b/build/parseSpec.c index 3fd9e79f9..3d99ec6e2 100644 --- a/build/parseSpec.c +++ b/build/parseSpec.c @@ -544,8 +544,6 @@ int parseSpec(rpmts ts, const char *specFile, const char *rootDir, spec->anyarch = anyarch; spec->force = force; - spec->timeCheck = rpmExpandNumeric("%{_timecheck}"); - /* All the parse*() functions expect to have a line pre-read */ /* in the spec's line buffer. Except for parsePreamble(), */ /* which handles the initial entry into a spec file. */ diff --git a/build/rpmspec.h b/build/rpmspec.h index 8a0b425ee..450f26477 100644 --- a/build/rpmspec.h +++ b/build/rpmspec.h @@ -68,8 +68,6 @@ struct rpmSpec_s { int force; int anyarch; - int timeCheck; - struct Source * sources; int numSources; int noSource; diff --git a/build/spec.c b/build/spec.c index 7fae65463..91bc55cd3 100644 --- a/build/spec.c +++ b/build/spec.c @@ -224,8 +224,6 @@ rpmSpec newSpec(void) spec->buildRoot = NULL; spec->buildSubdir = NULL; - spec->timeCheck = 0; - spec->buildRestrictions = headerNew(); spec->BANames = NULL; spec->BACount = 0; diff --git a/rpmpopt.in b/rpmpopt.in index dc10b5b70..92e3a2e02 100644 --- a/rpmpopt.in +++ b/rpmpopt.in @@ -166,7 +166,6 @@ rpmbuild alias --ftpport --define '_httpport !#:+' rpmbuild alias --ftpproxy --define '_httpproxy !#:+' rpmbuild alias --httpport --define '_httpport !#:+' rpmbuild alias --httpproxy --define '_httpproxy !#:+' -rpmbuild alias --timecheck --define '_timecheck !#:+' rpmbuild alias --with --define "_with_!#:+ --with-!#:+" \ --POPTdesc=$"enable configure <option> for build" \ --POPTargs=$"<option>" |