diff -u update-notifier-0.79/src/update.c update-notifier-0.79.dan/src/update.c --- update-notifier-0.79/src/update.c 2009-06-29 05:13:27.000000000 -0700 +++ update-notifier-0.79.dan/src/update.c 2009-07-01 11:50:26.207578000 -0700 @@ -383,13 +383,17 @@ // is to not auto launch if dpkg/apt were run manually by the // user char *logs[] = { "/var/log/dpkg.log", + "/var/log/dpkg.log.1", "/var/log/apt/term.log", + "/var/log/apt/term.log.1", NULL }; for (i=0; logs[i] != NULL; i++) { if(g_stat(logs[i], &buf) <0) { g_warning("can't stat %s\n", logs[i]); continue; } + if (buf.st_size == 0) + continue; time_t mtime = buf.st_mtime; g_debug_update ("mtime from %s: %i (%s)\n", logs[i], mtime, ctime(&mtime)); time_t bctime = buf.st_ctime;