From 94e7f8a474e768f468cf26300c148ec8d84b529e Mon Sep 17 00:00:00 2001 From: Matthew Johnson Date: Thu, 8 Mar 2018 13:01:36 -0800 Subject: [PATCH] Allow 'm' flag in rename flag position The 'm' flag is used as a special flag by mixer-integration on the client side to indicate a manifest record in the Manifest.MoM was created by a local mix. Allow this flag and just set the rename flag to renameUnset. Signed-off-by: Matthew Johnson --- swupd/files.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/swupd/files.go b/swupd/files.go index 7f0838a..10bc001 100644 --- a/swupd/files.go +++ b/swupd/files.go @@ -192,6 +192,9 @@ func renameFromFlag(flag byte) (frename, error) { return renameSet, nil case '.': return renameUnset, nil + case 'm': + // this is a special flag used by mixer-integration client-side + return renameUnset, nil default: return renameUnset, fmt.Errorf("invalid file rename flag: %v", flag) }