add GoPath: to .deb files
This commit is contained in:
parent
4bf2379357
commit
9ce1554c88
|
@ -81,6 +81,10 @@ func (c *controlBox) addRepo(path string) {
|
|||
c.dirtyL.SetText("false")
|
||||
}
|
||||
|
||||
if c.GoPath.String() == "" {
|
||||
c.GoPath.SetText(c.status.GoPath())
|
||||
}
|
||||
|
||||
lasttag := c.status.GetLastTagVersion()
|
||||
if argv.Release {
|
||||
debversion = c.status.DebianReleaseVersion()
|
||||
|
|
|
@ -237,6 +237,9 @@ func (c *controlBox) writeDebianControlFile() bool {
|
|||
|
||||
fmt.Fprintln(cf, "Maintainer:", c.Maintainer.String())
|
||||
fmt.Fprintln(cf, "Packager:", c.Packager.String())
|
||||
if c.GoPath.String() != "" {
|
||||
fmt.Fprintln(cf, "GoPath:", c.URL.String())
|
||||
}
|
||||
if c.URL.String() != "" {
|
||||
fmt.Fprintln(cf, "URL:", c.URL.String())
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ type controlBox struct {
|
|||
Version *gadgets.OneLiner
|
||||
Maintainer *gadgets.OneLiner
|
||||
Packager *gadgets.BasicEntry
|
||||
GoPath *gadgets.BasicEntry
|
||||
URL *gadgets.BasicEntry
|
||||
Architecture *gadgets.BasicDropdown
|
||||
InstallPath *gadgets.BasicCombobox
|
||||
|
@ -77,6 +78,9 @@ func newControl(parent *gui.Node) *controlBox {
|
|||
c.Packager = gadgets.NewBasicEntry(c.grid, "Packager")
|
||||
c.grid.NextRow()
|
||||
|
||||
c.GoPath = gadgets.NewBasicEntry(c.grid, "GoPath")
|
||||
c.grid.NextRow()
|
||||
|
||||
c.URL = gadgets.NewBasicEntry(c.grid, "URL")
|
||||
c.grid.NextRow()
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ Packager: Jeff Carr <jcarr@wit.com>
|
|||
Architecture: amd64
|
||||
Depends:
|
||||
URL: github.com/posener/complete
|
||||
GoPath: github.com/posener/complete
|
||||
Recommends: golang
|
||||
Version: 0.0.1
|
||||
Description: gocomplete from posener
|
||||
|
|
|
@ -67,6 +67,8 @@ func (c *controlBox) readControlFile() error {
|
|||
c.Maintainer.SetText(value)
|
||||
case "Packager":
|
||||
c.Packager.SetText(value)
|
||||
case "GoPath":
|
||||
c.GoPath.SetText(value)
|
||||
case "URL":
|
||||
c.URL.SetText(value)
|
||||
case "Depends":
|
||||
|
|
Loading…
Reference in New Issue