Import of pkgsrc-2015Q3

This commit is contained in:
2015-10-03 03:37:01 -07:00
committed by Lionel Sambuc
parent f641581404
commit 9d819b6d54
7578 changed files with 228314 additions and 80018 deletions

View File

@@ -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: