Call Fflush at the end of writeing a signed package to catch out of disk space errors. --- ./lib/rpmchecksig.c.orig 2005-12-14 20:54:39.000000000 +0000 +++ ./lib/rpmchecksig.c 2006-03-21 18:00:22.000000000 +0000 @@ -116,6 +116,10 @@ static int copyFile(FD_t *sfdp, const ch rpmError(RPMERR_FREAD, _("%s: Fread failed: %s\n"), *sfnp, Fstrerror(*sfdp)); goto exit; } + if (Fflush(*tfdp) != 0) { + rpmError(RPMERR_FWRITE, _("%s: Fflush failed: %s\n"), *tfnp, + Fstrerror(*tfdp)); + } rc = 0;