// PopulateRepo populates the repo struct with all RPMs from the database
PopulateRepo populates the repo struct with all RPMs from the database
// PopulateRepo populates the repo struct with all RPMs from the database
func PopulateRepo(repo *Repo, cacheLoc string) error {
	var err error
	var c redis.Conn
	if c, err = initRedis(0); err != nil {
		return err
	}
	defer func() {
		_ = c.Close()
	}()
	if repo.CacheDir == "" {
		repo.CacheDir = filepath.Join(
			cacheLoc,
			"rpms",
			repo.Name,
			repo.Version,
			repo.Type,
			"packages",
		)
	}
	return getRepoRedis(c, repo)
}
func PopulateRepo ( repo * Repo , cacheLoc string ) error { var err error var c redis . Conn if c , err = initRedis ( 0 ) ; err != nil { return err } defer func ( ) { _ = c . Close ( ) } ( ) if repo . CacheDir == " " { repo . CacheDir = filepath . Join ( cacheLoc , " " , repo . Name , repo . Version , repo . Type , " " , ) } return getRepoRedis ( c , repo ) }
PopulateRepo populates the repo struct with all RPMs from the database
PopulateRepo populates the repo struct with all RPMs from the database