mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-06-02 08:10:17 +00:00
use rpms instead of dist
This commit is contained in:
parent
dc1067cc38
commit
5762a402c2
|
@ -233,7 +233,7 @@ func getTipStream(pd *ProcessData, module string, pushBranch string) string {
|
||||||
log.Fatalf("could not init git repo: %v", err)
|
log.Fatalf("could not init git repo: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
remoteUrl := fmt.Sprintf("%s/dist/%s.git", pd.UpstreamPrefix, module)
|
remoteUrl := fmt.Sprintf("%s/rpms/%s.git", pd.UpstreamPrefix, module)
|
||||||
refspec := config.RefSpec("+refs/heads/*:refs/remotes/origin/*")
|
refspec := config.RefSpec("+refs/heads/*:refs/remotes/origin/*")
|
||||||
remote, err := repo.CreateRemote(&config.RemoteConfig{
|
remote, err := repo.CreateRemote(&config.RemoteConfig{
|
||||||
Name: "origin",
|
Name: "origin",
|
||||||
|
|
|
@ -70,7 +70,7 @@ func ProcessRPM(pd *ProcessData) {
|
||||||
tagImportRegex = regexp.MustCompile(fmt.Sprintf("refs/tags/(imports/(%s.|%s.-.+)/(.*))", pd.ImportBranchPrefix, pd.ImportBranchPrefix))
|
tagImportRegex = regexp.MustCompile(fmt.Sprintf("refs/tags/(imports/(%s.|%s.-.+)/(.*))", pd.ImportBranchPrefix, pd.ImportBranchPrefix))
|
||||||
md := pd.Importer.RetrieveSource(pd)
|
md := pd.Importer.RetrieveSource(pd)
|
||||||
|
|
||||||
remotePrefix := "dist"
|
remotePrefix := "rpms"
|
||||||
if pd.ModuleMode {
|
if pd.ModuleMode {
|
||||||
remotePrefix = "modules"
|
remotePrefix = "modules"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user