Skip to content

Commit 10f5971

Browse files
authored
Merge pull request #6131 from kmuriki/r3.8.1
R3.8.1
2 parents 2329fcb + 6495bda commit 10f5971

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- Fix incorrect reference in sandbox restrictive permissions warning.
1313
- Prevent garbage collection from closing the container image file
1414
descriptor.
15+
- Update to Arch Linux pacman.conf URL and remove file size verification.
1516

1617
## v3.8.0 - [2021-06-15]
1718

CONTRIBUTORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- Amanda Duffy <[email protected]>
1717
- Ana Guerrero Lopez <[email protected]>
1818
- Ángel Bejarano <[email protected]>
19+
- Apuã Paquola <[email protected]>
1920
- Aron Öfjörð Jóhannesson <[email protected]>
2021
- Bernard Li <[email protected]>
2122
- Brian Bockelman <[email protected]>

internal/pkg/build/sources/conveyorPacker_arch.go

+2-7
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
)
2323

2424
const (
25-
pacmanConfURL = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/pacman.conf?h=packages/pacman"
25+
pacmanConfURL = "https://github.com/archlinux/svntogit-packages/raw/master/pacman/trunk/pacman.conf"
2626
)
2727

2828
var (
@@ -126,16 +126,11 @@ func (cp *ArchConveyorPacker) getPacConf(pacmanConfURL string) (pacConf string,
126126
}
127127
defer resp.Body.Close()
128128

129-
bytesWritten, err := io.Copy(pacConfFile, resp.Body)
129+
_, err = io.Copy(pacConfFile, resp.Body)
130130
if err != nil {
131131
return
132132
}
133133

134-
//Simple check to make sure file received is the correct size
135-
if bytesWritten != resp.ContentLength {
136-
return "", fmt.Errorf("file received is not the right size. supposed to be: %v actually: %v", resp.ContentLength, bytesWritten)
137-
}
138-
139134
return pacConfFile.Name(), nil
140135
}
141136

0 commit comments

Comments
 (0)