mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-25 00:58:45 +05:00
Merge branch 'master' into hapool
This commit is contained in:
@@ -1158,7 +1158,6 @@ func (ms *MongoStorage) GetAllActionPlans() (ats map[string]*ActionPlan, err err
|
||||
ats = make(map[string]*ActionPlan, len(apls))
|
||||
for key, value := range apls {
|
||||
apl := value.(*ActionPlan)
|
||||
apl.AccountIDs = utils.YesDots(apl.AccountIDs)
|
||||
ats[key] = apl
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ binary-arch: clean
|
||||
mkdir -p src/github.com/cgrates
|
||||
ln -sf $(CURDIR) src/github.com/cgrates
|
||||
go get -v github.com/Masterminds/glide
|
||||
$(GOPATH)/bin/glide up
|
||||
$(GOPATH)/bin/glide install
|
||||
exec $(CURDIR)/build.sh
|
||||
mkdir -p $(PKGDIR)/usr/bin
|
||||
cp $(GOPATH)/bin/cgr-* $(PKGDIR)/usr/bin/
|
||||
|
||||
@@ -68,7 +68,7 @@ export GO15VENDOREXPERIMENT=1
|
||||
export GOPATH=$RPM_BUILD_DIR/%{name}-%{version}
|
||||
cd $RPM_BUILD_DIR/%{name}-%{version}/src/github.com/cgrates/cgrates
|
||||
go get -v github.com/Masterminds/glide
|
||||
$GOPATH/bin/glide up
|
||||
$GOPATH/bin/glide install
|
||||
./build.sh
|
||||
|
||||
%install
|
||||
|
||||
@@ -25,7 +25,7 @@ binary-arch: clean
|
||||
mkdir -p src/github.com/cgrates
|
||||
ln -sf $(CURDIR) src/github.com/cgrates
|
||||
go get -v github.com/Masterminds/glide
|
||||
$(GOPATH)/bin/glide up
|
||||
$(GOPATH)/bin/glide install
|
||||
exec $(CURDIR)/build.sh
|
||||
mkdir -p $(PKGDIR)/usr/bin
|
||||
cp $(GOPATH)/bin/cgr-* $(PKGDIR)/usr/bin/
|
||||
|
||||
@@ -144,6 +144,7 @@ func (sm StringMap) GetOne() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
/*
|
||||
func NoDots(m map[string]struct{}) map[string]struct{} {
|
||||
return MapKeysReplace(m, ".", ".")
|
||||
}
|
||||
@@ -160,3 +161,4 @@ func MapKeysReplace(m map[string]struct{}, old, new string) map[string]struct{}
|
||||
}
|
||||
return m
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user