Created attachment 867346 [details] Patch so extension regexp ignores trailing '/' in section name Trying to install Sinology-assistant deb package (which can be found here: https://global.synologydownload.com/download/Utility/Assistant/7.0.4-50051/Ubuntu/x86_64/synology-assistant_7.0.4-50051_amd64.deb?model=DS414&bays=4&dsm_version=7.1.1&build_number=42962) I get > deb2targz synology-assistant_7.0.4-50051_amd64.deb deb2targz: converting 'synology-assistant_7.0.4-50051_amd64.deb' ... deb2targz: skipping section 'debian-binary/' deb2targz: skipping section 'control.tar.gz/' can't write 'synology-assistant_7.0.4-50051_amd64.tar.gz/': Is a directory at /usr/bin/deb2targz line 55. --> So its finding a '.gz/' extension (as all sections seem t have a trialing '/' in their name... The '/' reused in the filename (which is therefore a directory name) leads to the error. Attached patched fixes it for me...
deb2targz is a dead project upstream, and unmaintained on Gentoo. Just use "ar x" instead.
(In reply to Mike Gilbert from comment #1) > deb2targz is a dead project upstream, and unmaintained on Gentoo. > > Just use "ar x" instead. "ar x" it is then !
Line 56: "$ext =~ s/\///;" this will fix the issue