File: 08_dpatch_list_patch.sh

package info (click to toggle)
dpatch 2.0.38%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 676 kB
  • sloc: sh: 1,013; makefile: 225; awk: 57; perl: 17
file content (41 lines) | stat: -rwxr-xr-x 1,043 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Junichi Uekawa 11 Jul 2005.

##: check dpatch-list-patch works.
##: Depends on 06,07.

set -e

cd $PKGPATH


echo '=== output of dpatch-list-patch'
dpatch-list-patch

echo '=== check for obvious entries in output of dpatch-list-patch'
dpatch-list-patch | grep debian/patches/01_edpatch.dpatch
dpatch-list-patch | grep "No description"
dpatch-list-patch | grep debian/patches/03_description.dpatch
dpatch-list-patch | grep "Description of this patch"


##: Also, run dpatch-edit-patch with -d option, and check that
##: -d only has effect on newly created patches


echo '=== Edit patch with an attempt for changed description'
#make sure it's unpatched
debian/rules unpatch
echo 'echo 08 > desc ' | \
    dpatch-edit-patch -d '08 Changed description' 03_description

echo '=== Make sure dpatch-list-patch picks up the new description'
dpatch-list-patch
if dpatch-list-patch | grep "08 Changed description"; then
    echo "This should not come here."
    exit 1
else
    :
fi

dpatch-list-patch | grep "Description of this patch"