summaryrefslogtreecommitdiff
path: root/debian/patches/golang-1.3-compat
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2021-08-11 23:53:12 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2021-08-11 23:53:12 -0500
commit446cfa176cff292c0fc2b9733383a6a63f9742c4 (patch)
tree503ad43523eb6a73d16ca6123913988ea2dddd88 /debian/patches/golang-1.3-compat
parent592727ba3726677a0b00cad4109d2a72397d0c10 (diff)
downloaddeb-planr-446cfa176cff292c0fc2b9733383a6a63f9742c4.tar.xz
deb-planr-446cfa176cff292c0fc2b9733383a6a63f9742c4.zip
Init w/ dh-make-golang
Diffstat (limited to 'debian/patches/golang-1.3-compat')
-rw-r--r--debian/patches/golang-1.3-compat23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/golang-1.3-compat b/debian/patches/golang-1.3-compat
new file mode 100644
index 0000000..b0e4f37
--- /dev/null
+++ b/debian/patches/golang-1.3-compat
@@ -0,0 +1,23 @@
+Index: planr.git/fs.go
+===================================================================
+--- planr.git.orig/fs.go
++++ planr.git/fs.go
+@@ -220,7 +220,7 @@ func collectFromDir(
+
+ // Read the entries in this directory
+ for {
+- dirs, err := fp.ReadDir(100)
++ dirs, err := fp.Readdir(100)
+ if err == io.EOF {
+ break
+ } else if err != nil {
+@@ -229,8 +229,8 @@ func collectFromDir(
+
+
+ for _, ent := range dirs {
+- child := path.Join(dir, ent.Name())
+ nm := ent.Name()
++ child := path.Join(dir, nm)
+
+ if ent.IsDir() {
+ collectFromDir(child, defaults, cfgs, units)