summaryrefslogtreecommitdiff
path: root/app-admin/github-backup-utils/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-admin/github-backup-utils/files
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-admin/github-backup-utils/files')
-rw-r--r--app-admin/github-backup-utils/files/github-backup-utils-python27.patch13
-rw-r--r--app-admin/github-backup-utils/files/github-backup-utils-tarball-fix.patch39
2 files changed, 52 insertions, 0 deletions
diff --git a/app-admin/github-backup-utils/files/github-backup-utils-python27.patch b/app-admin/github-backup-utils/files/github-backup-utils-python27.patch
new file mode 100644
index 000000000000..c305b688ceca
--- /dev/null
+++ b/app-admin/github-backup-utils/files/github-backup-utils-python27.patch
@@ -0,0 +1,13 @@
+diff --git a/test/bin/python b/test/bin/python
+index c79b0a4..a9c2991 100755
+--- a/test/bin/python
++++ b/test/bin/python
+@@ -18,7 +18,7 @@ cat >/dev/null
+ # verify the python compiles at least. if this fails then the python code passed
+ # to -c failed basic syntax checks.
+ echo "$2" |
+-/usr/bin/python -c "import sys; __import__('compiler').parse(sys.stdin.read())"
++/usr/bin/python2.7 -c "import sys; __import__('compiler').parse(sys.stdin.read())"
+
+ # pretend we found zero processes.
+ echo 0
diff --git a/app-admin/github-backup-utils/files/github-backup-utils-tarball-fix.patch b/app-admin/github-backup-utils/files/github-backup-utils-tarball-fix.patch
new file mode 100644
index 000000000000..b0f0b8de3140
--- /dev/null
+++ b/app-admin/github-backup-utils/files/github-backup-utils-tarball-fix.patch
@@ -0,0 +1,39 @@
+commit ef6709b5e3510a7d0bcf0db91dbf5af5bc27b001
+Author: Austin English <austinenglish@gmail.com>
+Date: Tue Nov 28 16:36:39 2017 -0600
+
+ test/test-ghe-backup.sh: skip test if not in a git checkout
+
+diff --git a/test/test-ghe-backup.sh b/test/test-ghe-backup.sh
+index 296429e..08bced2 100755
+--- a/test/test-ghe-backup.sh
++++ b/test/test-ghe-backup.sh
+@@ -475,14 +475,20 @@ begin_test "ghe-backup stores version when not run from a clone"
+ # Make sure this doesn't exist
+ rm -f "$GHE_REMOTE_DATA_USER_DIR/common/backup-utils-version"
+
+- tmpdir=$(mktemp -d $TRASHDIR/foo.XXXXXX)
+- git clone $ROOTDIR $tmpdir/backup-utils
+- cd $tmpdir/backup-utils
+- rm -rf .git
+- ./bin/ghe-backup
+-
+- # verify that ghe-backup wrote its version information to the host
+- [ -f "$GHE_REMOTE_DATA_USER_DIR/common/backup-utils-version" ]
++ tmpdir=$(mktemp -d "$TRASHDIR/foo.XXXXXX")
++
++ # If user is running the tests extracted from a release tarball, git clone will fail.
++ if GIT_DIR="$ROOTDIR/.git" git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
++ git clone "$ROOTDIR" "$tmpdir/backup-utils"
++ cd "$tmpdir/backup-utils"
++ rm -rf .git
++ ./bin/ghe-backup
++
++ # Verify that ghe-backup wrote its version information to the host
++ [ -f "$GHE_REMOTE_DATA_USER_DIR/common/backup-utils-version" ]
++ else
++ echo ".git directory not found, skipping ghe-backup not from a clone test"
++ fi
+ )
+ end_test
+