Codebase list debian-goodies / 3df2df9
Ignore options between interpreter and script name (Closes: #678635) Axel Beckert 10 years ago
2 changed file(s) with 8 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
533533 #m = re.search(r'^(([/]\w*){1,5})\s.*$', cmdline.read())
534534 data = cmdline.read().split('\x00')
535535 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])
537543 if data and data[0]: data = data[0]
538544 data = self.which(data)
539545 m = re.search(r'^(/usr/\S+)$', data)
2222 - Check ignorelist for package name equality, not substring match.
2323 Thanks Francesco Poli! (Closes: #696533)
2424 - Also ignore log and temp files under /var/local/ (Closes: #695151)
25 - Ignore options between interpreter and script name (Closes: #678635)
2526 * Bump debhelper compatibility to 9 to be able to use some more recent
2627 features. Update versioned debhelper build-dependency accordingly.
2728 * Revamp debian/rules