Commit c66df069 authored by Julien Muchembled's avatar Julien Muchembled

re6st: fix Debian build with recent obs-build

Also stop using deprecated TarFile.add's exclude parameter.
parent 558dcf28
......@@ -178,10 +178,10 @@ def tarball(task):
for x in upstream.outputs:
def exclude(path):
return path.endswith('/.git')
def tar_filter(info):
return None if'/.git') else info
for x in BUILD_KEEP:
t.add(BUILD + "/" + x, exclude=exclude)
t.add(BUILD + "/" + x, filter=tar_filter)
@task(sdist, "debian/changelog")
def dch(task):
......@@ -210,7 +210,9 @@ def deb(task):
# Unfortunately, OBS does not support symlinks.
with make_tar_gz(task.outputs[0], mtime, dereference=True) as t:
added = glob("debian/*")
t.add("debian", filter=lambda info:
None if == "debian/source" else info)
x = "debian/control"
tarfile_addfileobj(t, x, patched_control, control)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment