Ignore options between interpreter and script name (Closes: #678635)
Axel Beckert
10 years ago
533 | 533 |
#m = re.search(r'^(([/]\w*){1,5})\s.*$', cmdline.read())
|
534 | 534 |
data = cmdline.read().split('\x00')
|
535 | 535 |
if not data[-1]: data.pop()
|
536 | |
data = data[len(data)>=2].split()
|
|
536 |
# Strip first value, the interpreter
|
|
537 |
data.pop(0)
|
|
538 |
# Strip all options following the interpreter, e.g. python's -O
|
|
539 |
m = re.match("^-", data[0])
|
|
540 |
while (m):
|
|
541 |
data.pop(0)
|
|
542 |
m = re.match("^-", data[0])
|
537 | 543 |
if data and data[0]: data = data[0]
|
538 | 544 |
data = self.which(data)
|
539 | 545 |
m = re.search(r'^(/usr/\S+)$', data)
|
22 | 22 |
- Check ignorelist for package name equality, not substring match.
|
23 | 23 |
Thanks Francesco Poli! (Closes: #696533)
|
24 | 24 |
- Also ignore log and temp files under /var/local/ (Closes: #695151)
|
|
25 |
- Ignore options between interpreter and script name (Closes: #678635)
|
25 | 26 |
* Bump debhelper compatibility to 9 to be able to use some more recent
|
26 | 27 |
features. Update versioned debhelper build-dependency accordingly.
|
27 | 28 |
* Revamp debian/rules
|