diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-08-01 19:03:15 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-08-01 19:03:15 +0300 |
commit | 465f5f9d5c0983fad5a64351d9b71c738f6f905d (patch) | |
tree | 06c8af073ee25da7fd902050918259752651f0fc /build | |
parent | 94b4ee60c00b6cf8c65dd29e6bd4c0e3177a33b3 (diff) | |
download | rpm-465f5f9d5c0983fad5a64351d9b71c738f6f905d.tar.gz rpm-465f5f9d5c0983fad5a64351d9b71c738f6f905d.tar.bz2 rpm-465f5f9d5c0983fad5a64351d9b71c738f6f905d.zip |
Turn the invalid date error to warning (related to RhBug:843525)
- The strict date validation introduced in commit
a29e5f9894e4d97322d34b0636e5a37bff509323 is too much of a PITA
for such a petty cause, mismatching weekday names as very very
common in specs. Maybe we can change it to a hard error in a couple
of years from now once folks have had time to get rid of the
warnings first.
Diffstat (limited to 'build')
-rw-r--r-- | build/parseChangelog.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/parseChangelog.c b/build/parseChangelog.c index 3091b1264..60f99990c 100644 --- a/build/parseChangelog.c +++ b/build/parseChangelog.c @@ -108,7 +108,10 @@ static int dateToTimet(const char * datestr, time_t * secs) free(tz); } if (*secs == -1) goto exit; - if (!sameDate(&time, &ntime)) goto exit; + + /* XXX Turn this into a hard error in a release or two */ + if (!sameDate(&time, &ntime)) + rpmlog(RPMLOG_WARNING, _("bogus date in %%changelog: %s\n"), datestr); rc = 0; |