[Reproducible-commits] [debbindiff] 02/06: Properly adjust lsattr output
Jérémy Bobbio
lunar at moszumanska.debian.org
Thu Mar 19 20:56:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository debbindiff.
commit 866452ca5c54fb5797cf5ba493d93c49eab10536
Author: Jérémy Bobbio <lunar at debian.org>
Date: Wed Mar 18 16:14:35 2015 +0000
Properly adjust lsattr output
---
debbindiff/comparators/directory.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/debbindiff/comparators/directory.py b/debbindiff/comparators/directory.py
index 0ceb9a3..2022069 100644
--- a/debbindiff/comparators/directory.py
+++ b/debbindiff/comparators/directory.py
@@ -39,7 +39,8 @@ def stat(path):
def lsattr(path):
try:
- return subprocess.check_output(['lsattr', '-d', path], shell=False, stderr=subprocess.STDOUT).decode('utf-8')
+ output = subprocess.check_output(['lsattr', '-d', path], shell=False, stderr=subprocess.STDOUT).decode('utf-8')
+ return output.split()[0]
except subprocess.CalledProcessError as e:
if e.returncode == 1:
# filesystem doesn't support xattrs
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debbindiff.git
More information about the Reproducible-commits
mailing list