Description of problem: I have noticed that occasionally the file /var/log/rpmpkgs gets truncated to zero length. The file can be restored by either running /etc/cron.daily/rpm directly or waiting until it gets run automatically the next day. This seems to happen randomly so I am not (yet) sure what precipitates this.
Nothing except the cron script touches /var/log/rpmpkgs. Rewrite the cron script to write to temp file, and mv to rpmpkgs iff the query succeeds, if you really care. WORKSFORME.
rpm.org script rewritten to avoid truncating the log in case of errors.