|
@ -6,6 +6,7 @@ import ( |
|
|
"os" |
|
|
"os" |
|
|
|
|
|
|
|
|
"PackageManager/Archive" |
|
|
"PackageManager/Archive" |
|
|
|
|
|
"PackageManager/Variables" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func InstallPackage(pkgs []string) error { |
|
|
func InstallPackage(pkgs []string) error { |
|
@ -22,7 +23,9 @@ func InstallPackage(pkgs []string) error { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
for _, pkg = range pkgs { |
|
|
for _, pkg = range pkgs { |
|
|
e = Archive.UntarGzip(pkg, "/") |
|
|
|
|
|
|
|
|
fmt.Printf("Installing %s...", pkg) |
|
|
|
|
|
e = Archive.UntarGzip(pkg, Variables.DestDir) |
|
|
|
|
|
fmt.Printf("%s successfully installed", pkg) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return nil |
|
|
return nil |
|
|