forked from Plemya-x/ALR
		
	feat: add skiplists for auto_req and auto_prov
This commit is contained in:
		| @@ -31,79 +31,44 @@ type BuildOpts struct { | ||||
| } | ||||
|  | ||||
| type BuildVarsPre struct { | ||||
| 	Version       string   `sh:"version,required"` | ||||
| 	Release       int      `sh:"release,required"` | ||||
| 	Epoch         uint     `sh:"epoch"` | ||||
| 	Description   string   `sh:"desc"` | ||||
| 	Homepage      string   `sh:"homepage"` | ||||
| 	Maintainer    string   `sh:"maintainer"` | ||||
| 	Architectures []string `sh:"architectures"` | ||||
| 	Licenses      []string `sh:"license"` | ||||
| 	Provides      []string `sh:"provides"` | ||||
| 	Conflicts     []string `sh:"conflicts"` | ||||
| 	Depends       []string `sh:"deps"` | ||||
| 	BuildDepends  []string `sh:"build_deps"` | ||||
| 	OptDepends    []string `sh:"opt_deps"` | ||||
| 	Replaces      []string `sh:"replaces"` | ||||
| 	Sources       []string `sh:"sources"` | ||||
| 	Checksums     []string `sh:"checksums"` | ||||
| 	Backup        []string `sh:"backup"` | ||||
| 	Scripts       Scripts  `sh:"scripts"` | ||||
| 	AutoReq       []string `sh:"auto_req"` | ||||
| 	AutoProv      []string `sh:"auto_prov"` | ||||
| 	Version          string   `sh:"version,required"` | ||||
| 	Release          int      `sh:"release,required"` | ||||
| 	Epoch            uint     `sh:"epoch"` | ||||
| 	Description      string   `sh:"desc"` | ||||
| 	Homepage         string   `sh:"homepage"` | ||||
| 	Maintainer       string   `sh:"maintainer"` | ||||
| 	Architectures    []string `sh:"architectures"` | ||||
| 	Licenses         []string `sh:"license"` | ||||
| 	Provides         []string `sh:"provides"` | ||||
| 	Conflicts        []string `sh:"conflicts"` | ||||
| 	Depends          []string `sh:"deps"` | ||||
| 	BuildDepends     []string `sh:"build_deps"` | ||||
| 	OptDepends       []string `sh:"opt_deps"` | ||||
| 	Replaces         []string `sh:"replaces"` | ||||
| 	Sources          []string `sh:"sources"` | ||||
| 	Checksums        []string `sh:"checksums"` | ||||
| 	Backup           []string `sh:"backup"` | ||||
| 	Scripts          Scripts  `sh:"scripts"` | ||||
| 	AutoReq          []string `sh:"auto_req"` | ||||
| 	AutoProv         []string `sh:"auto_prov"` | ||||
| 	AutoReqSkipList  []string `sh:"auto_req_skiplist"` | ||||
| 	AutoProvSkipList []string `sh:"auto_prov_skiplist"` | ||||
| } | ||||
|  | ||||
| func (bv *BuildVarsPre) ToBuildVars() BuildVars { | ||||
| 	return BuildVars{ | ||||
| 		Name:          "", | ||||
| 		Version:       bv.Version, | ||||
| 		Release:       bv.Release, | ||||
| 		Epoch:         bv.Epoch, | ||||
| 		Description:   bv.Description, | ||||
| 		Homepage:      bv.Homepage, | ||||
| 		Maintainer:    bv.Maintainer, | ||||
| 		Architectures: bv.Architectures, | ||||
| 		Licenses:      bv.Licenses, | ||||
| 		Provides:      bv.Provides, | ||||
| 		Conflicts:     bv.Conflicts, | ||||
| 		Depends:       bv.Depends, | ||||
| 		BuildDepends:  bv.BuildDepends, | ||||
| 		OptDepends:    bv.OptDepends, | ||||
| 		Replaces:      bv.Replaces, | ||||
| 		Sources:       bv.Sources, | ||||
| 		Checksums:     bv.Checksums, | ||||
| 		Backup:        bv.Backup, | ||||
| 		Scripts:       bv.Scripts, | ||||
| 		AutoReq:       bv.AutoReq, | ||||
| 		AutoProv:      bv.AutoProv, | ||||
| 		Name:         "", | ||||
| 		Base:         "", | ||||
| 		BuildVarsPre: *bv, | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // BuildVars represents the script variables required | ||||
| // to build a package | ||||
| type BuildVars struct { | ||||
| 	Name          string   `sh:"name,required"` | ||||
| 	Version       string   `sh:"version,required"` | ||||
| 	Release       int      `sh:"release,required"` | ||||
| 	Epoch         uint     `sh:"epoch"` | ||||
| 	Description   string   `sh:"desc"` | ||||
| 	Homepage      string   `sh:"homepage"` | ||||
| 	Maintainer    string   `sh:"maintainer"` | ||||
| 	Architectures []string `sh:"architectures"` | ||||
| 	Licenses      []string `sh:"license"` | ||||
| 	Provides      []string `sh:"provides"` | ||||
| 	Conflicts     []string `sh:"conflicts"` | ||||
| 	Depends       []string `sh:"deps"` | ||||
| 	BuildDepends  []string `sh:"build_deps"` | ||||
| 	OptDepends    []string `sh:"opt_deps"` | ||||
| 	Replaces      []string `sh:"replaces"` | ||||
| 	Sources       []string `sh:"sources"` | ||||
| 	Checksums     []string `sh:"checksums"` | ||||
| 	Backup        []string `sh:"backup"` | ||||
| 	Scripts       Scripts  `sh:"scripts"` | ||||
| 	AutoReq       []string `sh:"auto_req"` | ||||
| 	AutoProv      []string `sh:"auto_prov"` | ||||
| 	Base          string | ||||
| 	Name string `sh:"name,required"` | ||||
| 	Base string | ||||
| 	BuildVarsPre | ||||
| } | ||||
|  | ||||
| type Scripts struct { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user