1
Check that --debianonly option is working in dpatch-edit-patch
2
with the auto-detection, finding the .tar.gz in ../upstream directory.
3
Bug: #315719 -- patch to use ../upstream
4
Depends on 10_dpep_debianonly.sh for setting up the environment.
5
Bug: #317775 -- fallback when orig.tar.gz does not exist does not work.
7
+ cd /tmp/XXXX/dpatch-test/../debianonly/dpatch-test
8
+ mv ../upstream ../hidden-upstream
9
+ echo 'echo yet-more-patch > 11 '
10
+ dpatch-edit-patch -P/tmp/XXXX/debianonly/dpatch-test/../upstream --debianonly -d test 11_test_patch
11
dpatch-edit-patch: * /tmp/XXXX/debianonly/dpatch-test/debian/patches/11_test_patch.dpatch does not exist, it will be created as a new dpatch.
12
dpatch-edit-patch: * debian/-only layout selected
13
DEBUG: try /tmp/XXXX/debianonly/dpatch-test/../upstream
14
Reading package lists...
15
Building dependency tree...
16
E: Unable to find a source package for dpatch-test
17
dpatch-get-origtargz: Error: apt-get source dpatch-test failed
18
dpatch-get-origtargz: Error: unable to obtain dpatch-test_0.1.orig.tar.gz from anywhere
19
dpatch-edit-patch: Error: unable to obtain upstream tarball, failed
21
+ mv ../hidden-upstream ../upstream
22
+ echo 'echo yet-more-patch > 11 '
23
+ dpatch-edit-patch -P/tmp/XXXX/debianonly/dpatch-test/../upstream --debianonly -d test 11_test_patch
24
dpatch-edit-patch: * /tmp/XXXX/debianonly/dpatch-test/debian/patches/11_test_patch.dpatch does not exist, it will be created as a new dpatch.
25
dpatch-edit-patch: * debian/-only layout selected
26
DEBUG: try /tmp/XXXX/debianonly/dpatch-test/../upstream
27
dpatch-edit-patch: * unpacking dpatch-test_0.1.orig.tar.gz
28
dpatch-edit-patch: * Copying /tmp/XXXX/debianonly/dpatch-test to reference directory.
29
dpatch-edit-patch: * Cleaning /tmp/XXXX/dpatch-test
35
03_description not applied to ./ .
36
02_another not applied to ./ .
37
01_edpatch not applied to ./ .
38
rm -rf patch-stamp debian/patched
39
make: Nothing to be done for `unpatch'.
40
03_description not applied to ./ .
41
02_another not applied to ./ .
42
01_edpatch not applied to ./ .
43
dpatch-edit-patch: Warning: * No base-patch supplied, not applying any patches.
44
dpatch-edit-patch: * Copying reference directory /tmp/XXXX/dpatch-test to work directory.
48
Now launching an interactive shell in your work directory. Edit your files.
49
When you are done, exit the shell. When you exit the shell, your patch will be
50
automatically updated based on the changes in your work directory.
52
If you wish to abort the process, exit the shell such that it returns an exit
53
code of "230". This is typically done by exiting the shell with the command
55
dpatch-edit-patch: * Creating new patch /tmp/XXXX/debianonly/dpatch-test/debian/patches/11_test_patch.dpatch
56
dpatch-edit-patch: Warning: debian/patches/00template not exist, using hardcoded default.
57
dpatch-edit-patch: /tmp/XXXX/debianonly/dpatch-test/debian/patches/11_test_patch.dpatch created.
58
+ echo 'echo yet-more-patch > 11 '
59
+ dpatch-edit-patch --origtargzpath=/tmp/XXXX/debianonly/dpatch-test/../upstream --debianonly -d test 11_test_patch
60
dpatch-edit-patch: * /tmp/XXXX/debianonly/dpatch-test/debian/patches/11_test_patch.dpatch exists, this patch will be updated.
61
dpatch-edit-patch: * debian/-only layout selected
62
DEBUG: try /tmp/XXXX/debianonly/dpatch-test/../upstream
63
dpatch-edit-patch: * unpacking dpatch-test_0.1.orig.tar.gz
64
dpatch-edit-patch: * Copying /tmp/XXXX/debianonly/dpatch-test to reference directory.
65
dpatch-edit-patch: * Cleaning /tmp/XXXX/dpatch-test
71
03_description not applied to ./ .
72
02_another not applied to ./ .
73
01_edpatch not applied to ./ .
74
rm -rf patch-stamp debian/patched
75
make: Nothing to be done for `unpatch'.
76
03_description not applied to ./ .
77
02_another not applied to ./ .
78
01_edpatch not applied to ./ .
79
dpatch-edit-patch: Warning: 11_test_patch.dpatch is not listed in debian/patches/00list, no other patches will be applied to the working directory.
80
dpatch-edit-patch: * Copying reference directory /tmp/XXXX/dpatch-test to work directory.
81
dpatch-edit-patch: * Applying current 11_test_patch.dpatch for editing.
82
applying patch 11_test_patch to ./ ... ok.
86
Now launching an interactive shell in your work directory. Edit your files.
87
When you are done, exit the shell. When you exit the shell, your patch will be
88
automatically updated based on the changes in your work directory.
90
If you wish to abort the process, exit the shell such that it returns an exit
91
code of "230". This is typically done by exiting the shell with the command
93
dpatch-edit-patch: Updating patch /tmp/XXXX/debianonly/dpatch-test/debian/patches/11_test_patch.dpatch
94
dpatch-edit-patch: @DPATCH@ tag found, preserving dpatch header.
95
dpatch-edit-patch: /tmp/XXXX/debianonly/dpatch-test/debian/patches/11_test_patch.dpatch updated.
96
+ grep yet-more-patch debian/patches/11_test_patch.dpatch