[arch-commits] Commit in borg/trunk (3 files)

Lukas Fleischer lfleischer at archlinux.org
Tue Nov 15 17:00:04 UTC 2016


    Date: Tuesday, November 15, 2016 @ 17:00:03
  Author: lfleischer
Revision: 195979

upgpkg: borg 1.0.8-1

Upstream update.

Added:
  borg/trunk/borg-1.0.8-fix-testsuite.patch
Modified:
  borg/trunk/PKGBUILD
  borg/trunk/borg.coveragerc

--------------------------------+
 PKGBUILD                       |   13 +++++++++---
 borg-1.0.8-fix-testsuite.patch |   40 +++++++++++++++++++++++++++++++++++++++
 borg.coveragerc                |   15 +++++++++-----
 3 files changed, 60 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-11-15 16:47:26 UTC (rev 195978)
+++ PKGBUILD	2016-11-15 17:00:03 UTC (rev 195979)
@@ -3,7 +3,7 @@
 
 pkgname=borg
 _pkgname=borgbackup
-pkgver=1.0.7
+pkgver=1.0.8
 pkgrel=1
 pkgdesc='Deduplicating backup program with compression and authenticated encryption'
 url='https://borgbackup.github.io/'
@@ -17,10 +17,17 @@
 provides=('borgbackup')
 replaces=('borgbackup')
 source=("https://github.com/$_pkgname/$pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tar.gz"
+        borg-1.0.8-fix-testsuite.patch
         borg.coveragerc)
-sha256sums=('203353a299b6ea0c092a1f23b6bb5414a0b795712c213c68f7a1f4c24be131d1'
-            '024bf101b25f9d35b83f86ce794c85f404d7acb212e047b4fca68b108dff21a7')
+sha256sums=('6902563c447c4f378ff1a13167f83d15eb60a02316a06368a539b7ff3d88aeb9'
+            '6e283d6a166c4823ea5af5b68cfc46c38e55124434a4f9f552bfb7f963b1401a'
+            '183814ae70fce7bbcf04dbbf3866eaf76867896a4327f8a3b553e095d1ff360f')
 
+prepare() {
+  cd "$srcdir/$_pkgname-$pkgver"
+  patch -p1 -i ../borg-1.0.8-fix-testsuite.patch
+}
+
 build() {
   cd "$srcdir/$_pkgname-$pkgver"
   python setup.py build

Added: borg-1.0.8-fix-testsuite.patch
===================================================================
--- borg-1.0.8-fix-testsuite.patch	                        (rev 0)
+++ borg-1.0.8-fix-testsuite.patch	2016-11-15 17:00:03 UTC (rev 195979)
@@ -0,0 +1,40 @@
+From 960c42193acdab214217dd8a472f7f28d7ca5153 Mon Sep 17 00:00:00 2001
+From: Marian Beermann <public at enkore.de>
+Date: Sun, 13 Nov 2016 11:19:58 +0100
+Subject: [PATCH] fix tox build for environment-python != containing-python in
+ yet-another instance
+
+this instance: the repository worktree is *not* named borg.
+
+Cherry pick of 4f1157c into 1.0-maint due to f3efcdb
+
+TODO removed since we already did that after 1.0-maint, but 1.0-maint
+will never receive the change.
+---
+ conftest.py | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/conftest.py b/conftest.py
+index d80aed4..d542366 100644
+--- a/conftest.py
++++ b/conftest.py
+@@ -1,4 +1,5 @@
+ import os
++import os.path
+ import sys
+ 
+ import pytest
+@@ -10,12 +11,10 @@
+ # The workaround is to remove entries pointing there from the path and check whether "borg"
+ # is still importable. If it is not, then it has not been installed in the environment
+ # and the entries are put back.
+-#
+-# TODO: After moving the package to src/: remove this.
+ 
+ original_path = list(sys.path)
+ for entry in original_path:
+-    if entry == '' or entry.endswith('/borg'):
++    if entry == '' or entry == os.path.dirname(__file__):
+         sys.path.remove(entry)
+ 
+ try:

Modified: borg.coveragerc
===================================================================
--- borg.coveragerc	2016-11-15 16:47:26 UTC (rev 195978)
+++ borg.coveragerc	2016-11-15 17:00:03 UTC (rev 195979)
@@ -1,15 +1,20 @@
 [run]
 branch = True
-source = borg
+source = src/borg
 omit =
-    borg/__init__.py
-    borg/__main__.py
-    borg/_version.py
-    borg/support/*.py
+    */borg/__init__.py
+    */borg/__main__.py
+    */borg/_version.py
+    */borg/fuse.py
+    */borg/support/*
+    */borg/testsuite/*
+    */borg/hash_sizes.py
 
 [report]
 exclude_lines =
     pragma: no cover
+    pragma: freebsd only
+    pragma: unknown platform only
     def __repr__
     raise AssertionError
     raise NotImplementedError



More information about the arch-commits mailing list