// ImportAllRPMs imports all RPMs from a given repository. It populates the
// passed repo with all RPMs imported.
ImportAllRPMs imports all RPMs from a given repository. It populates the
passed repo with all RPMs imported.
// ImportAllRPMs imports all RPMs from a given repository . It populates the // passed repo with all RPMs imported .
func ImportAllRPMs(repo *Repo, update bool, path string) error {
	var err error
	if err = loadRepoFromCache(repo, path); err != nil {
		return err
	}
	var c redis.Conn
	if c, err = initRedis(0); err != nil {
		return err
	}
	defer func() {
		_ = c.Close()
	}()
	if err = storeRepoInfoRedis(c, repo); err != nil {
		return err
	}
	return nil
}
func ImportAllRPMs ( repo * Repo , update bool , path string ) error { var err error if err = loadRepoFromCache ( repo , path ) ; err != nil { return err } var c redis . Conn if c , err = initRedis ( 0 ) ; err != nil { return err } defer func ( ) { _ = c . Close ( ) } ( ) if err = storeRepoInfoRedis ( c , repo ) ; err != nil { return err } return nil }
ImportAllRPMs imports all RPMs from a given repository.
ImportAllRPMs imports all RPMs from a given repository .