paultag / go-debian

debian golang support library
https://pault.ag/go/debian
Other
81 stars 33 forks source link

some formats are not supported #121

Closed cincly closed 2 years ago

cincly commented 2 years ago

example: http://mirrors.aliyun.com/ubuntu/pool/main/l/linux-aws/linux-image-unsigned-5.15.0-1004-aws_5.15.0-1004.6_amd64.deb

file list:

$ tar -xvf linux-image-unsigned-5.15.0-1004-aws_5.15.0-1004.6_amd64.deb 
x debian-binary
x control.tar
x data.tar
errordeveloper commented 2 years ago

I am also seeing this.

errordeveloper commented 2 years ago

Looks like this check fails .tar files, it only detects .tar.* files:

https://github.com/paultag/go-debian/blob/9df3f2696ca17d00f363102749a06c3ed2f69ea3/deb/tarfile.go#L102-L105

Will open a PR shortly.