Skip to content

Commit

Permalink
fix: inspect debian control file (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshvakov authored and esell committed Feb 19, 2019
1 parent fd11150 commit 536cb80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ func inspectPackageControl(filename bytes.Buffer) (string, error) {
case tar.TypeDir:
continue
case tar.TypeReg:
if name == "./control" {
switch name {
case "control", "./control":
io.Copy(&controlBuf, tarReader)
return strings.TrimRight(controlBuf.String(), "\n") + "\n", nil
}
Expand Down

0 comments on commit 536cb80

Please sign in to comment.