Skip to content

Commit

Permalink
Solve the issue #36
Browse files Browse the repository at this point in the history
  • Loading branch information
ThorAsgardDev authored and ctron committed Feb 6, 2023
1 parent 945c58d commit 345dc3b
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 345dc3b

Please sign in to comment.