From 4f975913b4f20dec68d761241e8c3f12158a7d0e Mon Sep 17 00:00:00 2001 From: Skip Grube Date: Tue, 28 Feb 2023 16:23:51 -0500 Subject: [PATCH] Removed old commented line -Skip --- pkg/srpmproc/process.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/srpmproc/process.go b/pkg/srpmproc/process.go index 98704d7..76fe57a 100644 --- a/pkg/srpmproc/process.go +++ b/pkg/srpmproc/process.go @@ -1205,7 +1205,6 @@ func getVersionFromSpec(localRepo string, majorVersion int) (string, error) { fmt.Sprintf("%s/SPECS/%s", localRepo, specFile), } cmd := exec.Command("rpmspec", cmdArgs...) - //cmd := exec.Command("rpmspec", "--srpm", fmt.Sprintf(`--define=dist .el%d`, majorVersion), "-q", "--queryformat", `%{NAME}|%{VERSION}|%{RELEASE}\n`, fmt.Sprintf("%s/SPECS/%s", localRepo, specFile)) nvrTmp, err := cmd.CombinedOutput() if err != nil { return "", fmt.Errorf("Error running rpmspec command to determine RPM name-version-release identifier. \nCommand attempted: %s \nCommand output: %s", cmd.String(), string(nvrTmp))