mirror of
https://github.com/clearlinux/autospec.git
synced 2026-06-16 02:45:56 +00:00
Limit diff to ~10 lines
Also include content of added files.
This commit is contained in:
+5
-2
@@ -446,5 +446,8 @@ class Content():
|
||||
autogenerated_src.extract(os.path.join(self.base_path, 'autogenerated-tmp'))
|
||||
# Move the autogenerated source to a non-version-named directory for consistent diffs
|
||||
call(f"mv autogenerated-tmp/{autogenerated_src.prefix} autogenerated", check=True, cwd=self.base_path)
|
||||
call("diff -u -r ../autogenerated ./",
|
||||
logfile="archive.diff", check=False, cwd=os.path.join(self.base_path, main_src.prefix))
|
||||
call("diff -u -r --unidirectional-new-file ../autogenerated ./",
|
||||
logfile="archive.diff.in", check=False, cwd=os.path.join(self.base_path, main_src.prefix))
|
||||
call("grep -A14 -E '^(diff|Only in)' archive.diff.in",
|
||||
logfile="archive.diff", check=False, cwd=os.getcwd())
|
||||
call("rm archive.diff.in", check=False, cwd=os.getcwd())
|
||||
|
||||
Reference in New Issue
Block a user