Skip to content
Snippets Groups Projects
Commit f94620d2 authored by Piotr Ożarowski's avatar Piotr Ożarowski
Browse files

add support for DH_OPTIONS env. variable

parent b61e778d
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ python-defaults (2.6.6-11) UNRELEASED; urgency=low ...@@ -5,6 +5,7 @@ python-defaults (2.6.6-11) UNRELEASED; urgency=low
module name is now required) module name is now required)
- replace a file with a symlink also if there's a matching one in - replace a file with a symlink also if there's a matching one in
pyshared directory already pyshared directory already
- add support for DH_OPTIONS env. variable
-- Piotr Ożarowski <piotr@debian.org> Sat, 15 Jan 2011 21:14:38 +0100 -- Piotr Ożarowski <piotr@debian.org> Sat, 15 Jan 2011 21:14:38 +0100
......
...@@ -464,7 +464,8 @@ def main(): ...@@ -464,7 +464,8 @@ def main():
# ignore some debhelper options: # ignore some debhelper options:
parser.add_option('-O', help=SUPPRESS_HELP) parser.add_option('-O', help=SUPPRESS_HELP)
(options, args) = parser.parse_args() (options, args) = parser.parse_args(sys.argv[1:] + \
os.environ.get('DH_OPTIONS', '').split())
# regexpr option type is not used so lets check patterns here # regexpr option type is not used so lets check patterns here
for pattern in options.regexpr or []: for pattern in options.regexpr or []:
# fail now rather than at runtime # fail now rather than at runtime
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment