File tree 9 files changed +15
-17
lines changed
9 files changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ import (
18
18
"log"
19
19
"net/http"
20
20
21
- "github.com/minecrafter/sage /repository/maven"
22
- "github.com/minecrafter/sage /repository/store"
23
- "github.com/minecrafter/sage /server"
21
+ "github.com/minecrafter/package-savant /repository/maven"
22
+ "github.com/minecrafter/package-savant /repository/store"
23
+ "github.com/minecrafter/package-savant /server"
24
24
)
25
25
26
26
func main () {
Original file line number Diff line number Diff line change 14
14
15
15
package maven
16
16
17
- import "github.com/minecrafter/sage /repository"
17
+ import "github.com/minecrafter/package-savant /repository"
18
18
19
19
const (
20
20
mavenDateFormat = "20060102150405"
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ import (
26
26
"strings"
27
27
"time"
28
28
29
- "github.com/minecrafter/sage /repository"
30
- "github.com/minecrafter/sage /util"
29
+ "github.com/minecrafter/package-savant /repository"
30
+ "github.com/minecrafter/package-savant /util"
31
31
"github.com/pkg/errors"
32
32
)
33
33
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import (
19
19
"os"
20
20
"sync"
21
21
22
- "github.com/minecrafter/sage /repository"
22
+ "github.com/minecrafter/package-savant /repository"
23
23
"github.com/pkg/errors"
24
24
)
25
25
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ import (
18
18
"net/http"
19
19
"strings"
20
20
21
- "github.com/minecrafter/sage /repository/maven"
22
- "github.com/minecrafter/sage /util"
21
+ "github.com/minecrafter/package-savant /repository/maven"
22
+ "github.com/minecrafter/package-savant /util"
23
23
"github.com/pkg/errors"
24
24
)
25
25
@@ -29,9 +29,7 @@ type RepoHTTPHandler struct {
29
29
30
30
func (h RepoHTTPHandler ) ServeHTTP (w http.ResponseWriter , r * http.Request ) {
31
31
// embellish ourselves
32
- w .Header ().Add ("Server" , "Sage" )
33
- w .Header ().Add ("X-Sage-Version" , "0.1" )
34
- w .Header ().Add ("X-Try-Sage" , "http://sage-repo.org" )
32
+ w .Header ().Add ("Server" , "Package Savant" )
35
33
36
34
path := r .URL .EscapedPath ()
37
35
if path == "/ping" {
Original file line number Diff line number Diff line change 2
2
<!doctype html>
3
3
< html >
4
4
< head >
5
- < title > {{.}} | Sage </ title >
5
+ < title > {{.}} | Package Savant </ title >
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
7
7
< link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.2.3/css/bulma.min.css "/>
8
8
</ head >
9
9
< body >
10
10
< nav class ="nav ">
11
11
< div class ="nav-left ">
12
- < a class ="nav-item is-brand " href ="# "> Sage </ a >
12
+ < a class ="nav-item is-brand " href ="# "> Package Savant </ a >
13
13
</ div >
14
14
15
15
< span class ="nav-toggle ">
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ <h2 class="subtitle">
18
18
< h1 class ="title "> What should I do?</ h1 >
19
19
</ div >
20
20
< div class ="content ">
21
- < p > This is most likely a bug in Package Savant. Report the issue < a href ="https://github.com/minecrafter/sage /issues "> here</ a > .</ p >
21
+ < p > This is most likely a bug in Package Savant. Report the issue < a href ="https://github.com/minecrafter/package-savant /issues "> here</ a > .</ p >
22
22
{{if .Error}}
23
23
< p > Make sure to include the following information:</ p >
24
24
< pre > < code > {{.Error}}</ code > </ pre >
Original file line number Diff line number Diff line change 4
4
< div class ="hero-body ">
5
5
< div class ="container ">
6
6
< h1 class ="title ">
7
- Sage
7
+ Package Savant
8
8
</ h1 >
9
9
< h2 class ="subtitle ">
10
10
< p > This install is serving < strong > {{.RepositoryCount}}</ strong > {{if eq .RepositoryCount 1}}repository{{else}}repositories{{end}} with < strong > {{.PackageCount}}</ strong > {{if eq .PackageCount 1}}package{{else}}packages{{end}}.</ p >
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import (
22
22
23
23
"fmt"
24
24
25
- "github.com/minecrafter/sage /bindata"
25
+ "github.com/minecrafter/package-savant /bindata"
26
26
)
27
27
28
28
var (
You can’t perform that action at this time.
0 commit comments