File: failbackup.test

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

	$ quilt new test.diff
	> Patch %{P}test.diff is now on top

	$ quilt add test.txt
	> File test.txt added to patch %{P}test.diff
	$ cat > test.txt
	< This is test.txt.
	$ quilt refresh
	> Refreshed patch %{P}test.diff

What happens when refresh fails because of a permission error?

	$ chmod -w patches
	$ cat > test.txt
	< This is updated test.txt.
	$ quilt refresh --backup
	>~ mv: cannot move [`']?patches/test.diff'? to [`']?patches/test.diff~'?: Permission denied
	$ echo %{?}
	> 1

	$ chmod +w patches