diff options
author | riz <riz> | 2015-07-28 23:54:29 +0000 |
---|---|---|
committer | riz <riz> | 2015-07-28 23:54:29 +0000 |
commit | 50b6e31a893ab6fa559ee4e057a8d535445d76b1 (patch) | |
tree | d91e6a27877cd4a3613d7555b9c56352a7ee2273 /sysutils | |
parent | 0d8fa51ace6b3c0cfbd7a000a95fa8b14f76baa0 (diff) | |
download | pkgsrc-50b6e31a893ab6fa559ee4e057a8d535445d76b1.tar.gz |
Don't archive files with the 'nodump' flag.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/py-attic/Makefile | 3 | ||||
-rw-r--r-- | sysutils/py-attic/distinfo | 3 | ||||
-rw-r--r-- | sysutils/py-attic/patches/patch-archivers.py | 21 |
3 files changed, 25 insertions, 2 deletions
diff --git a/sysutils/py-attic/Makefile b/sysutils/py-attic/Makefile index 8a0509f4c88..30c95852f8c 100644 --- a/sysutils/py-attic/Makefile +++ b/sysutils/py-attic/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.2 2015/05/28 07:07:19 wiz Exp $ +# $NetBSD: Makefile,v 1.3 2015/07/28 23:54:29 riz Exp $ DISTNAME= Attic-0.16 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/A/a/} +PKGREVISION= 1 CATEGORIES= sysutils MASTER_SITES= https://pypi.python.org/packages/source/A/Attic/ diff --git a/sysutils/py-attic/distinfo b/sysutils/py-attic/distinfo index 59fed37acae..5ccb587b884 100644 --- a/sysutils/py-attic/distinfo +++ b/sysutils/py-attic/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.2 2015/05/28 07:07:19 wiz Exp $ +$NetBSD: distinfo,v 1.3 2015/07/28 23:54:29 riz Exp $ SHA1 (Attic-0.16.tar.gz) = 7afaa64f6d546bff94494d19d9e88c02d2e94088 RMD160 (Attic-0.16.tar.gz) = 02f14e1f5f6b002b78b581e51497c14263331214 Size (Attic-0.16.tar.gz) = 232455 bytes +SHA1 (patch-archivers.py) = 8ed0a975d6f80c2862539f81be9119a8ba17ea77 diff --git a/sysutils/py-attic/patches/patch-archivers.py b/sysutils/py-attic/patches/patch-archivers.py new file mode 100644 index 00000000000..cce8bd52eca --- /dev/null +++ b/sysutils/py-attic/patches/patch-archivers.py @@ -0,0 +1,21 @@ +$NetBSD: patch-archivers.py,v 1.1 2015/07/28 23:54:29 riz Exp $ +--- attic/archiver.py.orig ++++ attic/archiver.py +@@ -21,6 +21,7 @@ from attic.helpers import Error, location_validator, format_time, \ + is_cachedir, bigint_to_int + from attic.remote import RepositoryServer, RemoteRepository + ++has_lchflags = hasattr(os, 'lchflags') + + class Archiver: + +@@ -158,6 +159,9 @@ Type "Yes I am sure" if you understand this and want to continue.\n""") + # Ignore unix sockets + if stat.S_ISSOCK(st.st_mode): + return ++ # Ignore if nodump flag set ++ if has_lchflags and (st.st_flags & stat.UF_NODUMP): ++ return + self.print_verbose(remove_surrogates(path)) + if stat.S_ISREG(st.st_mode): + try: |