aptly icon indicating copy to clipboard operation
aptly copied to clipboard

Omitted path in Filename field in aptly package show

Open Ashark opened this issue 3 years ago • 0 comments

When I execute aptly package show "Name (~ .*)", I get the Packeges format output. But in their Filename fields there is no a relative path to the filename in pool.

Detailed Description

See the example of entry in Packages file from ~/.aptly/public/dists/focal/proprietary/binary-i386/Packages:

Package: vulkan-amdgpu-pro Priority: optional Section: libs Installed-Size: 40554 Maintainer: Advanced Micro Devices (AMD) [email protected] Architecture: i386 Version: 21.50.2-1384495 Depends: libc6 (>= 2.17), libgcc-s1 (>= 3.3.1), libstdc++6 (>= 4.9), libwayland-amdgpu-client0, libvulkan1, amdgpu-pro-core Recommends: libssl1.1 Filename: pool/proprietary/v/vulkan-amdgpu-pro/vulkan-amdgpu-pro_21.50.2-1384495_i386.deb Size: 8124016 Description: AMDGPU Pro Vulkan driver Multi-Arch: same

And this is how this entry looks with command aptly package show "Name (~ .*)

Package: vulkan-amdgpu-pro Priority: optional Section: libs Installed-Size: 40554 Maintainer: Advanced Micro Devices (AMD) [email protected] Architecture: i386 Version: 21.50-1373477 Depends: libc6 (>= 2.17), libgcc-s1 (>= 3.3.1), libstdc++6 (>= 4.9), libwayland-amdgpu-client0, libvulkan1, amdgpu-pro-core Recommends: libssl1.1 Filename: vulkan-amdgpu-pro_21.50-1373477_i386.deb Size: 8120676 MD5sum: 068f99927a7f3681264e0c06a45c88cd SHA1: 055b8086d14f741a8ebbe45f6138233bd804333a SHA256: 2a00ac372693b736a30fc24ddda86258b9234253bd73b14a60ae173863f893ac SHA512: 6f34e4c42d94935964b4ea36d875fc4e3d12cbce521134ce71500b94e79538615d7beedaa17b9ad3a97f77c8ec3e473c86a7e365099b4b9850aa963598cda68e Description: AMDGPU Pro Vulkan driver Multi-Arch: same

Expected result is that aptly package show should not strip that info.

Context

I am repackaging amdgpu-pro packages for Arch Linux. I need to get a list of all available packages. If I concat ~/.aptly/public/dists/focal/proprietary/binary-i386/Packages and ~/.aptly/public/dists/focal/proprietary/binary-amd64/Packages, then I got a list with some duplicated entries because of there are packages with any arch in both files. And I either need to manually cut out the duplicates (parse 32 bit Packages file, search entries of packages with Architecture: all, delete them, and then concat the rest with 64 bit Packages file). Instead of that, I wanted just use aptly to easily show me the list that I need (means without duplications of entries for Architecture: all packages). And then I instead get a problem that aptly strips relative pathes in Filename fields, but I need them.

Ashark avatar Mar 07 '22 21:03 Ashark