// GetRPM fetches information about an RPM in a repo. Returns a pointer to the
// associated RPM struct.
GetRPM fetches information about an RPM in a repo. Returns a pointer to the
associated RPM struct.
// GetRPM fetches information about an RPM in a repo . Returns a pointer to the // associated RPM struct .
func GetRPM(repo *Repo, rpm string) (*RPM, error) {
	if r := getRPMFromRepo(repo, rpm); r != nil {
		return r, nil
	}
	var c redis.Conn
	var err error
	if c, err = initRedis(0); err != nil {
		return nil, err
	}
	defer func() {
		_ = c.Close()
	}()
	return getRPMRedis(c, repo, rpm)
}
func GetRPM ( repo * Repo , rpm string ) ( * RPM , error ) { if r := getRPMFromRepo ( repo , rpm ) ; r != nil { return r , nil } var c redis . Conn var err error if c , err = initRedis ( 0 ) ; err != nil { return nil , err } defer func ( ) { _ = c . Close ( ) } ( ) return getRPMRedis ( c , repo , rpm ) }
GetRPM fetches information about an RPM in a repo.
GetRPM fetches information about an RPM in a repo .