File: hardcoded_cdrom.patch

package info (click to toggle)
flactag 2.0.4-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,120 kB
  • sloc: sh: 10,797; cpp: 3,287; makefile: 59; sed: 7
file content (22 lines) | stat: -rw-r--r-- 491 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
Description: Fix hardcoded cdrom device.
Origin: https://github.com/adhawkins/flactag/commit/cd14b51a1a49755e743d6cb6f44464e45d21de51.patch
Bug-Debian: https://bugs.debian.org/736458
Forwarded: not-needed
Applied-Upstream: see origin.
Last-Update: 2020-05-04
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/checkflac
+++ b/checkflac
@@ -1,6 +1,10 @@
 #!/bin/sh
+set -e
 
-CDROM=/dev/hdc
+if [ -z "$CDROM" ];
+then
+  CDROM=/dev/cdrom
+fi
 
 if [ $# = "1" ]
 then