- avoid numeric overflow in version comparison (Thayne Harbaugh<tharbaug@liberate.com>).
- move url.c and ftp.c to rpmlib right next to query.
- 12 more dead strtoks.
+ - changelog stamp broken w/ big endian 64 bit time_t (Stephane Erania).
3.0 -> 3.0.1
- fix: %verifyscript resurrected (Shing-Gene Yung).
#include "rpmbuild.h"
-static void addChangelogEntry(Header h, int time, char *name, char *text)
+static void addChangelogEntry(Header h, time_t time, char *name, char *text)
{
+ int_32 mytime = time; /* XXX convert to header representation */
if (headerIsEntry(h, RPMTAG_CHANGELOGTIME)) {
headerAppendEntry(h, RPMTAG_CHANGELOGTIME, RPM_INT32_TYPE,
- &time, 1);
+ &mytime, 1);
headerAppendEntry(h, RPMTAG_CHANGELOGNAME, RPM_STRING_ARRAY_TYPE,
&name, 1);
headerAppendEntry(h, RPMTAG_CHANGELOGTEXT, RPM_STRING_ARRAY_TYPE,
&text, 1);
} else {
headerAddEntry(h, RPMTAG_CHANGELOGTIME, RPM_INT32_TYPE,
- &time, 1);
+ &mytime, 1);
headerAddEntry(h, RPMTAG_CHANGELOGNAME, RPM_STRING_ARRAY_TYPE,
&name, 1);
headerAddEntry(h, RPMTAG_CHANGELOGTEXT, RPM_STRING_ARRAY_TYPE,
{
char *s;
int i;
- int time, lastTime = 0;
+ time_t time;
+ time_t lastTime = 0;
char *date, *name, *text, *next;
s = getStringBuf(sb);
SKIPNONSPACE(s);
}
SKIPSPACE(date);
- if (dateToTimet(date, (time_t *)&time)) {
+ if (dateToTimet(date, &time)) {
rpmError(RPMERR_BADSPEC, _("bad date in %%changelog: %s"), date);
return RPMERR_BADSPEC;
}
char * formatPrefix, int padding, int element,
char * strftimeFormat) {
char * val;
- time_t dateint;
struct tm * tstruct;
char buf[50];
strcat(formatPrefix, "s");
/* this is important if sizeof(int_32) ! sizeof(time_t) */
- dateint = *((int_32 *) data);
- tstruct = localtime(&dateint);
+ { time_t dateint = *((int_32 *) data);
+ tstruct = localtime(&dateint);
+ }
(void)strftime(buf, sizeof(buf) - 1, strftimeFormat, tstruct);
sprintf(val, formatPrefix, buf);
}
char sizefield[15];
char ownerfield[9], groupfield[9];
char timefield[100] = "";
- time_t themtime;
- time_t currenttime;
static int thisYear = 0;
static int thisMonth = 0;
struct tm * tstruct;
perms = permsString(mode);
if (!thisYear) {
- currenttime = time(NULL);
+ time_t currenttime = time(NULL);
tstruct = localtime(¤ttime);
thisYear = tstruct->tm_year;
thisMonth = tstruct->tm_mon;
}
/* this is important if sizeof(int_32) ! sizeof(time_t) */
- themtime = mtime;
- tstruct = localtime(&themtime);
+ { time_t themtime = mtime;
+ tstruct = localtime(&themtime);
+ }
if (tstruct->tm_year == thisYear ||
((tstruct->tm_year + 1) == thisYear && tstruct->tm_mon > thisMonth))
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 1999-07-03 18:48-0400\n"
+"POT-Creation-Date: 1999-07-06 13:15-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "line %d: second %s"
msgstr ""
-#: ../build/parseChangelog.c:101
+#: ../build/parseChangelog.c:103
msgid "%%changelog entries must start with *"
msgstr ""
-#: ../build/parseChangelog.c:109
+#: ../build/parseChangelog.c:111
msgid "incomplete %%changelog entry"
msgstr ""
-#: ../build/parseChangelog.c:124
+#: ../build/parseChangelog.c:126
msgid "bad date in %%changelog: %s"
msgstr ""
-#: ../build/parseChangelog.c:129
+#: ../build/parseChangelog.c:131
msgid "%%changelog not in decending chronological order"
msgstr ""
-#: ../build/parseChangelog.c:137 ../build/parseChangelog.c:148
+#: ../build/parseChangelog.c:139 ../build/parseChangelog.c:150
msgid "missing name in %%changelog"
msgstr ""
-#: ../build/parseChangelog.c:155
+#: ../build/parseChangelog.c:157
msgid "no description in %%changelog"
msgstr ""