X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=rpm-truncate-cvslog.patch;h=5d9e9774aad112b0d937da48b711afacd9fdaa6b;hb=765b7c4193af0b9737c02aa103d1ebb2b3ebda9c;hp=018d83b93ada89c8ff556120ba14ec7f5ef7f087;hpb=685ff05137eb9df4ddea7cf3f2195b8bceb2d0f5;p=packages%2Frpm.git diff --git a/rpm-truncate-cvslog.patch b/rpm-truncate-cvslog.patch index 018d83b..5d9e977 100644 --- a/rpm-truncate-cvslog.patch +++ b/rpm-truncate-cvslog.patch @@ -11,6 +11,14 @@ void addChangelogEntry(Header h, time_t time, const char *name, const char *text) { int_32 mytime = time; /* XXX convert to header representation */ +@@ -123,6 +123,7 @@ + int nentries = 0; + static time_t last = 0; + static int oneshot = 0; ++ int numchangelog = rpmExpandNumeric("%{?_buildchangelogtruncate}"); + + /* Determine changelog truncation criteria. */ + if (!oneshot++) { @@ -222,6 +223,42 @@ /* backup to end of description */ while ((s > text) && xisspace(*s))