summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2010-01-24 13:28:44 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-01-25 12:29:13 +0200
commit7c8d054c1b596cd6fdfeec102516ead7b8fb3036 (patch)
treec687f02d25dd6a795c9a7ef7cbec205d4772589d /scripts
parentcbb703f202f056baa616e3266482f69f5466b96a (diff)
downloadlibrpm-tizen-7c8d054c1b596cd6fdfeec102516ead7b8fb3036.tar.gz
librpm-tizen-7c8d054c1b596cd6fdfeec102516ead7b8fb3036.tar.bz2
librpm-tizen-7c8d054c1b596cd6fdfeec102516ead7b8fb3036.zip
Do not emit perl(#) dependencies for multiline use/require with comments.
For example: use # comment goes here Foo::Bar;
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/perl.req2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/perl.req b/scripts/perl.req
index 4c08dcd1a..28ff7821c 100755
--- a/scripts/perl.req
+++ b/scripts/perl.req
@@ -146,7 +146,7 @@ sub process_file {
(m/^(\s*) # we hope the inclusion starts the line
(require|use)\s+(?!\{) # do not want 'do {' loops
# quotes around name are always legal
- [\'\"]?([^\;\ \'\"\t]*)[\'\"]?[\t\;\ ]
+ [\'\"]?([^\;\ \'\"\t#]*)[\'\"]?[\t\;\ ]
# the syntax for 'use' allows version requirements
\s*([.0-9]*)
/x)