39 lines
977 B
Diff
39 lines
977 B
Diff
|
--- build/parseChangelog.c
|
||
|
+++ build/parseChangelog.c
|
||
|
@@ -111,10 +111,11 @@ static int dateToTimet(const char * datestr, /*@out@*/ time_t * secs)
|
||
|
static int addChangelog(Header h, StringBuf sb)
|
||
|
/*@modifies h @*/
|
||
|
{
|
||
|
- char *s;
|
||
|
+ char *s, *p;
|
||
|
int i;
|
||
|
time_t time;
|
||
|
time_t lastTime = 0;
|
||
|
+ time_t cutOffTime = 1151704800; /* date -d "2006/07/01" +%s #SLES10-GA */
|
||
|
char *date, *name, *text, *next;
|
||
|
|
||
|
s = getStringBuf(sb);
|
||
|
@@ -167,6 +168,12 @@ static int addChangelog(Header h, StringBuf sb)
|
||
|
return RPMERR_BADSPEC;
|
||
|
}
|
||
|
|
||
|
+ /* workaround old suse oddity */
|
||
|
+ if (*s == '-') {
|
||
|
+ ++s;
|
||
|
+ SKIPSPACE(s);
|
||
|
+ }
|
||
|
+
|
||
|
/* name */
|
||
|
name = s;
|
||
|
while (*s != '\0') s++;
|
||
|
@@ -198,7 +212,8 @@ static int addChangelog(Header h, StringBuf sb)
|
||
|
*s-- = '\0';
|
||
|
}
|
||
|
|
||
|
- addChangelogEntry(h, time, name, text);
|
||
|
+ if (time >= cutOffTime)
|
||
|
+ addChangelogEntry(h, time, name, text);
|
||
|
s = next;
|
||
|
}
|
||
|
|