1DEBDIFF-APPLY(1) General Commands Manual DEBDIFF-APPLY(1)
2
3
4
6 debdiff-apply - apply a debdiff to a Debian source package
7
8
10 debdiff-apply [options] [orig_dsc_or_dir] [patch_file]
11 debdiff-apply [options] < [patch_file]
12
13
15 debdiff-apply takes a patchfile that describes the differences between
16 two Debian source packages old and new, and applies it to a target
17 Debian source package orig.
18
19 orig could either be the same as old or it could be different. patch‐
20 file is expected to be a unified diff between two Debian source trees,
21 as what debdiff(1) normally generates.
22
23 Any changes to debian/changelog are dealt with specially, to avoid the
24 conflicts that changelog diffs typically produce when applied naively.
25 The exact behaviour may be tweaked in the future, so one should not
26 rely on it.
27
28 If patchfile does not apply to orig, even after the special-casing of
29 debian/changelog, no changes are made and debdiff-apply(1) will exit
30 with a non-zero error code.
31
32
34 orig_dsc_or_dir
35 Target to apply the patch to. This can either be an unpacked
36 source tree, or a .dsc file. In the former case, the directory
37 is modified in-place; in the latter case, a second .dsc is cre‐
38 ated. Default: .
39
40 patch_file
41 Patch file to apply, in the format output by debdiff(1).
42 Default: /dev/stdin
43
44
46 -h, --help
47 show this help message and exit
48
49 -v, --verbose
50 Output more information
51
52 -c CHANGELOG, --changelog CHANGELOG
53 Path to debian/changelog; default: debian/changelog
54
55 -D DISTRIBUTION, --distribution DISTRIBUTION
56 Distribution to use, if the patch doesn't already contain a
57 changelog; default: experimental
58
59 --repl Run the python REPL after processing.
60
61 --source-version
62 Don't apply the patch; instead print out the version of the
63 package that it is supposed to be applied to, or nothing if the
64 patch does not specify a source version.
65
66 --target-version
67 Don't apply the patch; instead print out the new version of the
68 package debdiff-apply(1) would generate, when the patch is
69 applied to the the given target package, as specified by the
70 other arguments.
71
72 For .dsc patch targets:
73 --no-clean
74 Don't clean temporary directories after a failure, so you can
75 examine what failed.
76
77 --quilt-refresh
78 If the building of the new source package fails, try to refresh
79 patches using quilt(1) then try building it again.
80
81 -d DIRECTORY, --directory DIRECTORY
82 Extract the .dsc into this directory, which won't be cleaned up
83 after debdiff-apply(1) exits. If not given, then it will be
84 extracted to a temporary directory.
85
86
88 debdiff-apply and this manual page were written by Ximin Luo <infin‐
89 ity0@debian.org>
90
91 Both are released under the GNU General Public License, version 3 or
92 later.
93
94
96 debdiff(1)
97
98
99
100DEBIAN Debian Utilities DEBDIFF-APPLY(1)