Fix ppp
This commit is contained in:
parent
3abc3409d6
commit
bc609ee9e2
@ -151,9 +151,6 @@ func download(packages map[string]packageInfo, url string, output string) {
|
|||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
rdr := io.Reader(resp.Body)
|
rdr := io.Reader(resp.Body)
|
||||||
opt := strings.Split(pack.FilePath, "/")[len(strings.Split(pack.FilePath, "/"))-1]
|
opt := strings.Split(pack.FilePath, "/")[len(strings.Split(pack.FilePath, "/"))-1]
|
||||||
if opt == "" {
|
|
||||||
opt = strings.TrimSpace(pack.Name) + ".deb"
|
|
||||||
}
|
|
||||||
path := output + opt
|
path := output + opt
|
||||||
file, err := os.Create(path)
|
file, err := os.Create(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -235,4 +232,5 @@ var brokenPackages = map[string]bool{
|
|||||||
"libnvidia-common-390 ": true,
|
"libnvidia-common-390 ": true,
|
||||||
"libnvidia-common-530 ": true,
|
"libnvidia-common-530 ": true,
|
||||||
"midisport-firmware ": true,
|
"midisport-firmware ": true,
|
||||||
|
"librust-winapi-dev ": true,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user