// GetSRPMName returns the SRPMName field of the given rpm. The rpm specified
// must be a binary or debuginfo RPM. If it is a source RPM or the RPM does not
// exist in the Repo, an error is returned.
GetSRPMName returns the SRPMName field of the given rpm. The rpm specified
must be a binary or debuginfo RPM. If it is a source RPM or the RPM does not
exist in the Repo, an error is returned.
// GetSRPMName returns the SRPMName field of the given rpm . The rpm specified // must be a binary or debuginfo RPM . If it is a source RPM or the RPM does not // exist in the Repo an error is returned .
func GetSRPMName(repo *Repo, rpm string) (string, error) {
	r, err := GetRPM(repo, rpm)
	if err != nil {
		return "", err
	}
	return r.SRPMName, nil
}
func GetSRPMName ( repo * Repo , rpm string ) ( string , error ) { r , err := GetRPM ( repo , rpm ) if err != nil { return " " , err } return r . SRPMName , nil }
GetSRPMName returns the SRPMName field of the given rpm.
GetSRPMName returns the SRPMName field of the given rpm .