Commit b9523a72 authored by Jelmer Vernooij's avatar Jelmer Vernooij

prevent spurious changes in debian-usptream-obsolete-path.

parent 10aeec0c
......@@ -2,8 +2,10 @@
if [[ -f debian/upstream ]]; then
mv debian/upstream debian/upstream-metadata.yaml
fi
mkdir -p debian/upstream
test -f debian/upstream-metadata && mv debian/upstream-metadata debian/upstream/metadata
test -f debian/upstream-metadata.yaml && mv debian/upstream-metadata.yaml debian/upstream/metadata
if test -f debian/upstream-metadata -o -f debian/upstream-metadata.yaml; then
mkdir -p debian/upstream
test -f debian/upstream-metadata && mv debian/upstream-metadata debian/upstream/metadata
test -f debian/upstream-metadata.yaml && mv debian/upstream-metadata.yaml debian/upstream/metadata
fi
echo "Move upstream metadata to debian/upstream/metadata."
echo "Fixed-Lintian-Tags: debian-upstream-obsolete-path"
......@@ -208,7 +208,7 @@ def delete_items(deletables, dry_run=False):
raise
warnings.warn('unable to remove %s' % path)
for path, subp in deletables:
if isdir(path):
if os.path.isdir(path):
shutil.rmtree(path, onerror=onerror)
else:
try:
......@@ -220,6 +220,7 @@ def delete_items(deletables, dry_run=False):
warnings.warn(
'unable to remove "{0}": {1}.'.format(path, e.strerror))
def run_lintian_fixer(local_tree, fixer, update_changelog=True):
"""Run a lintian fixer on a tree.
......
Source: lintian-brush
Package: lintian-brush
Description: Testing
Test test
Move upstream metadata to debian/upstream/metadata.
Fixed-Lintian-Tags: debian-upstream-obsolete-path
Source: lintian-brush
Package: lintian-brush
Description: Testing
Test test
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