Skip to content

Commit

Permalink
Removed old commented line
Browse files Browse the repository at this point in the history
-Skip
  • Loading branch information
skip77 committed Feb 28, 2023
1 parent 3371826 commit 4f97591
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/srpmproc/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4f97591

Please sign in to comment.