From e1751ab0a8d8ef7fbc5c69bfd1a14573e6aa080a Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Sun, 3 Jun 2018 23:45:03 +0100 Subject: added Origin: in package page --- deb822/package.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'deb822/package.go') diff --git a/deb822/package.go b/deb822/package.go index 525f112..f7352a7 100644 --- a/deb822/package.go +++ b/deb822/package.go @@ -24,6 +24,7 @@ type Package struct { Component string Section string Priority string + Origin string } var regexpRemove = regexp.MustCompile("(DEVUAN/|DEBIAN/|[0-9]+:)") @@ -61,6 +62,8 @@ func NewPackage(s Stanza) (Package, error) { } p.Section = s["Section"] p.Priority = s["Priority"] + p.Origin = strings.Title(strings.ToLower(strings.Split(s["Filename"], "/")[1])) + fmt.Printf("p.Origin: %s\n", p.Origin) return p, nil } -- cgit v1.2.3