File: missing-newline.test

package info (click to toggle)
quilt 0.68-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,052 kB
  • sloc: sh: 6,102; perl: 1,273; lisp: 522; makefile: 436
file content (22 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$ mkdir patches

$ echo foo > foo
$ quilt new 1.patch
> Patch %{P}1.patch is now on top

$ quilt add foo
> File foo added to patch %{P}1.patch

$ echo bar > foo
$ quilt refresh -p ab
> Refreshed patch %{P}1.patch

# Sabotage the series file
$ echo -n 1.patch > patches/series

# quilt should insert the missing newline before appending
$ quilt new 2.patch
> Patch %{P}2.patch is now on top
$ cat patches/series
> 1.patch
> 2.patch