[lxc-devel] [distrobuilder/master] managers: add 'pacman' prefix to functions
monstermunchkin on Github
lxc-bot at linuxcontainers.org
Mon Feb 12 15:10:32 UTC 2018
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 362 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180212/11bb2713/attachment.bin>
-------------- next part --------------
From a84b4a65aace30e8c15a979d39aa1f18c9fd1857 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Mon, 12 Feb 2018 16:06:18 +0100
Subject: [PATCH] managers: add 'pacman' prefix to functions
Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
managers/pacman.go | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/managers/pacman.go b/managers/pacman.go
index 46a9c43..8fce07f 100644
--- a/managers/pacman.go
+++ b/managers/pacman.go
@@ -10,14 +10,14 @@ import (
// NewPacman creates a new Manager instance.
func NewPacman() *Manager {
- err := setMirrorlist()
+ err := pacmanSetMirrorlist()
if err != nil {
return nil
}
// shared.RunCommand("pacman", "-Syy")
- err = setupTrustedKeys()
+ err = pacmanSetupTrustedKeys()
if err != nil {
return nil
}
@@ -52,7 +52,7 @@ func NewPacman() *Manager {
}
}
-func setupTrustedKeys() error {
+func pacmanSetupTrustedKeys() error {
var err error
_, err = os.Stat("/etc/pacman.d/gnupg")
@@ -73,7 +73,7 @@ func setupTrustedKeys() error {
return nil
}
-func setMirrorlist() error {
+func pacmanSetMirrorlist() error {
f, err := os.Create(filepath.Join("etc", "pacman.d", "mirrorlist"))
if err != nil {
return err
More information about the lxc-devel
mailing list