Bug 970689

Summary: supermin fails to install from deb packages
Product: [Community] Virtualization Tools Reporter: Nimimo <g2p.code+rhbugs>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: dyasny, g2p.code+rhbugs, mbooth
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-05 09:47:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nimimo 2013-06-04 15:34:29 UTC
supermin is from git

supermin -v -v -v -v -o supermin.d --save-temps blah/blah/*.deb
supermin 4.1.1
selected package handler: debian
unpacking blah/blah/adduser_3.113+nmu3ubuntu1_all.deb ...
Fatal error: exception Unix.Unix_error(20, "mkdir", "/tmp/supermin2ae46894c9f53495c4924527fe650069.tmp/blah/blah/adduser_3.113+nmu3ubuntu1_all.deb.d")

(cd blah/blah; supermin -v -v -v -v -o /home/blah/supermin.d --save-temps *.deb; )
supermin 4.1.1
selected package handler: debian
unpacking adduser_3.113+nmu3ubuntu1_all.deb ...
dpkg-deb: error: failed to read archive `/tmp/supermin5c38dbe94f478a28b891da08ffb41bdb.tmp/adduser_3.113+nmu3ubuntu1_all.deb': No such file or directory
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
supermin: umask 0000; dpkg-deb --fsys-tarfile /tmp/supermin5c38dbe94f478a28b891da08ffb41bdb.tmp/adduser_3.113+nmu3ubuntu1_all.deb | (cd /tmp/supermin5c38dbe94f478a28b891da08ffb41bdb.tmp/adduser_3.113+nmu3ubuntu1_all.deb.d && tar xf -): command failed, see earlier errors

Comment 2 Nimimo 2013-06-04 16:17:13 UTC
This works with both kinds of paths.  Thanks!

Comment 3 Richard W.M. Jones 2013-06-04 16:20:14 UTC
Closing based on verification comment 2.

Fix will appear in the next release (4.1.2 probably)

Comment 4 Nimimo 2013-06-04 20:49:40 UTC
I just noticed the change breaks downloaded packages.

Comment 5 Richard W.M. Jones 2013-06-05 09:20:41 UTC
Please verify 922527132403f79d82a0d2cb457b2a7cbc7dbbe8.

Comment 6 Nimimo 2013-06-05 09:47:05 UTC
This works in all cases — with package names and package paths.