File 0022-cmd-validate-remove-dead-current-keyword-code.patch of Package go-mtree

From f0d9d5891f44e6726023bc5d2f3278ae9785b5a0 Mon Sep 17 00:00:00 2001
From: Aleksa Sarai <cyphar@cyphar.com>
Date: Wed, 10 Sep 2025 15:41:05 +1000
Subject: [PATCH 22/25] cmd: validate: remove dead "current keyword" code

commit 21723a3974bc ("*: fix comparison of missing keywords") removed
the error that this for loop was intended for but left the no-op for
loop in its place.

Fixes: 21723a3974bc ("*: fix comparison of missing keywords")
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
---
 cmd/gomtree/cmd/validate.go | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/cmd/gomtree/cmd/validate.go b/cmd/gomtree/cmd/validate.go
index cc45c5ed1783..f3b5fa613c73 100644
--- a/cmd/gomtree/cmd/validate.go
+++ b/cmd/gomtree/cmd/validate.go
@@ -219,14 +219,6 @@ func validateAction(c *cli.Context) error {
 		if c.String("use-keywords") == "" && c.String("add-keywords") == "" {
 			currentKeywords = specKeywords
 		}
-
-		for _, keyword := range currentKeywords {
-			// As always, time is a special case.
-			// TODO: Fix that.
-			if (keyword == "time" && mtree.InKeywordSlice("tar_time", specKeywords)) || (keyword == "tar_time" && mtree.InKeywordSlice("time", specKeywords)) {
-				continue
-			}
-		}
 	}
 
 	// -p and -T are mutually exclusive
-- 
2.51.0

openSUSE Build Service is sponsored by