Skip to content

Commit

Permalink
Solve the issue ctron#36
Browse files Browse the repository at this point in the history
  • Loading branch information
ThorAsgardDev committed Feb 1, 2023
1 parent badecd0 commit a080cb3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/de/dentrassi/rpm/builder/YumMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,12 @@ private void addSinglePackage(final Path path, final Context context) throws IOE
ris.getPayloadHeader();
ris.getSignatureHeader();

final CpioArchiveInputStream cpio = ris.getCpioStream();
CpioArchiveEntry cpioEntry;
while ((cpioEntry = cpio.getNextCPIOEntry()) != null) {
providedFiles.add(RpmInformations.normalize(cpioEntry.getName()));
try (CpioArchiveInputStream cpio = ris.getCpioStream()) {
CpioArchiveEntry cpioEntry;
while ((cpioEntry = cpio.getNextCPIOEntry()) != null) {
providedFiles.add(RpmInformations.normalize(cpioEntry.getName()));
}
}
cpio.close();
}

// Remove provided files from the required list
Expand Down

0 comments on commit a080cb3

Please sign in to comment.