RFR: 8266179: [macos] jpackage should specify architecture for produced pkg files [v2]
Alexander Matveev
almatvee at openjdk.java.net
Mon May 3 17:32:54 UTC 2021
On Mon, 3 May 2021 16:01:36 GMT, Alexey Semenyuk <asemenyuk at openjdk.org> wrote:
>> Alexander Matveev has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8266179: [macos] jpackage should specify architecture for produced pkg files [v2]
>
> test/jdk/tools/jpackage/macosx/HostArchPkgTest.java line 57:
>
>> 55: Path distributionFile = cmd.unpackedPackageDirectory()
>> 56: .toAbsolutePath()
>> 57: .getParent()
>
> Why .getParent() is needed here?
Unpacking pkg is two stage process. First we unpack it to unpacked-pkg/data which contains Distribution file, pkg background images and tar archive with app itself. Then we unpack app tar archive to unpacked-pkg/unpacked. Test needs to check unpacked-pkg/data/Distribution and cmd.pathToUnpackedPackageFile("/") returns path to unpacked-pkg/unpacked. Thus getParent() is used to move up.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3807
More information about the core-libs-dev
mailing list