Skip to content

Commit

Permalink
Fix go-alpm tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jguer <me@jguer.space>
  • Loading branch information
Jguer committed Apr 26, 2018
1 parent 11d6aad commit aeb8ca6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
32 changes: 18 additions & 14 deletions conf_test.go
Expand Up @@ -13,20 +13,24 @@ import (
)

var pacmanConfRef = PacmanConfig{
RootDir: "/",
DBPath: "/var/lib/pacman",
CacheDir: []string{"/var/cache/pacman/pkg", "/other/cachedir"},
LogFile: "/var/log/pacman.log",
GPGDir: "/etc/pacman.d/gnupg/",
HoldPkg: []string{"pacman", "glibc"},
XferCommand: "/usr/bin/wget --passive-ftp -c -O %o %u",
Architecture: "auto",
CleanMethod: "KeepInstalled",
UseDelta: 0.7,
IgnorePkg: []string{"hello", "world"},
IgnoreGroup: []string{"kde"},
NoUpgrade: nil,
NoExtract: nil,
Architecture: "auto",
CacheDir: []string{"/var/cache/pacman/pkg", "/other/cachedir"},
CleanMethod: []string{"KeepInstalled"},
DBPath: "/var/lib/pacman",
GPGDir: "/etc/pacman.d/gnupg/",
SigLevel: SigPackage | SigPackageOptional | SigDatabase | SigDatabaseOptional,
LocalFileSigLevel: SigUseDefault,
RemoteFileSigLevel: SigUseDefault,
HoldPkg: []string{"pacman", "glibc"},
HookDir: []string{"/etc/pacman.d/hooks/"},
IgnoreGroup: []string{"kde"},
IgnorePkg: []string{"hello", "world"},
LogFile: "/var/log/pacman.log",
NoExtract: nil,
NoUpgrade: nil,
RootDir: "/",
UseDelta: 0.7,
XferCommand: "/usr/bin/wget --passive-ftp -c -O %o %u",

Options: ConfColor | ConfCheckSpace | ConfVerbosePkgLists,

Expand Down
5 changes: 3 additions & 2 deletions examples/installed.go
Expand Up @@ -7,9 +7,10 @@
package main

import (
"github.com/jguer/go-alpm"
"os"
"fmt"
"os"

"github.com/jguer/go-alpm"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/search.go
Expand Up @@ -7,8 +7,9 @@
package main

import (
"github.com/jguer/go-alpm"
"fmt"

"github.com/jguer/go-alpm"
)

func main() {
Expand Down

0 comments on commit aeb8ca6

Please sign in to comment.