mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-08 22:30:41 +00:00
Add 'deb-src' line to repos with source packages included.
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
|||||||
"github.com/gonuts/commander"
|
"github.com/gonuts/commander"
|
||||||
"github.com/gonuts/flag"
|
"github.com/gonuts/flag"
|
||||||
"github.com/smira/aptly/debian"
|
"github.com/smira/aptly/debian"
|
||||||
|
"github.com/smira/aptly/utils"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
@@ -72,6 +73,11 @@ func aptlyServe(cmd *commander.Command, args []string) error {
|
|||||||
|
|
||||||
fmt.Printf("# %s\ndeb http://%s:%s/%s %s %s\n",
|
fmt.Printf("# %s\ndeb http://%s:%s/%s %s %s\n",
|
||||||
repo, listenHost, listenPort, prefix, repo.Distribution, repo.Component)
|
repo, listenHost, listenPort, prefix, repo.Distribution, repo.Component)
|
||||||
|
|
||||||
|
if utils.StrSliceHasItem(repo.Architectures, "source") {
|
||||||
|
fmt.Printf("deb-src http://%s:%s/%s %s %s\n",
|
||||||
|
listenHost, listenPort, prefix, repo.Distribution, repo.Component)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
context.database.Close()
|
context.database.Close()
|
||||||
|
|||||||
Reference in New Issue
Block a user