Skip to content

Commit

Permalink
Truncate existing RPM file before writing new one
Browse files Browse the repository at this point in the history
  • Loading branch information
micheljung authored Oct 18, 2024
1 parent eecbe1c commit a0728f7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ class RpmCopyAction extends AbstractPackagingCopyAction<Rpm> {
RandomAccessFile rpmFile
try {
rpmFile = new RandomAccessFile(task.getArchiveFile().get().asFile, "rw")
rpmFile.setLength(0);
builder.build(rpmFile.getChannel())
logger.info 'Created rpm {}', rpmFile
} finally {
Expand Down

0 comments on commit a0728f7

Please sign in to comment.