chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
autopkgtests: provide t-apply-diff
[dgit.git]
/
tests
/
lib
diff --git
a/tests/lib
b/tests/lib
index 94c4c7969ba0702e5a3bd6ff03beef9ee3ad683b..fb6059ba835d456cb0f795cfd0be535c5fd9e3fb 100644
(file)
--- a/
tests/lib
+++ b/
tests/lib
@@
-158,3
+158,10
@@
t-ref-dsc-dgit () {
print $ref,"\n";
' <$tmp/incoming/${p}_${v}.dsc >$tmp/t.ref1
}
+
+t-apply-diff () {
+ local v1=$1
+ local v2=$2
+ (cd $troot/pkg-srcs; debdiff ${p}_${v1}.dsc ${p}_${v2}.dsc) \
+ | patch -p1 -u
+}