Only create metadata if file is non-zero sized
The recent iso9660wrap vendoring bump means this does now work, but it seems
pointless in this case so skip.
Relates to
@@ -262,8 +262,10 @@ func CreateMetadataISO(state, data string) ([]string, error) {
}
var d []byte
- if _, err := os.Stat(data); os.IsNotExist(err) {
+ if st, err := os.Stat(data); os.IsNotExist(err) {
d = []byte(data)
+ } else if st.Size() == 0 {
+ return []string{}, nil
} else {
d, err = ioutil.ReadFile(data)
if err != nil {
