mirror of
https://github.com/clearlinux/mixer-tools.git
synced 2026-09-05 13:11:31 +00:00
swupd: directory entries in tar should end with "/"
Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
This commit is contained in:
committed by
Matthew Johnson
parent
2913b37a66
commit
f440521fc0
@@ -182,6 +182,7 @@ func copyFromChrootFile(tw *tar.Writer, chrootDir string, f *File) (fallback boo
|
||||
if !fi.IsDir() {
|
||||
return true, fmt.Errorf("couldn't use %s for packing: manifest expected a directory but it is not", realname)
|
||||
}
|
||||
hdr.Name = hdr.Name + "/"
|
||||
hdr.Typeflag = tar.TypeDir
|
||||
case typeLink:
|
||||
if fi.Mode()&os.ModeSymlink == 0 {
|
||||
|
||||
Reference in New Issue
Block a user