diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Dpkg/Changelog/Debian.pm | 6 | ||||
-rw-r--r-- | scripts/Dpkg/Deps.pm | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/Dpkg/Changelog/Debian.pm b/scripts/Dpkg/Changelog/Debian.pm index 7e27e3514..e66f4487a 100644 --- a/scripts/Dpkg/Changelog/Debian.pm +++ b/scripts/Dpkg/Changelog/Debian.pm @@ -112,10 +112,10 @@ sub parse { next; # skip comments, even that's not supported } elsif (m{^/\*.*\*/}o) { next; # more comments - } elsif (m/^(\w+\s+\w+\s+\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}\s+[\w\s]*\d{4})\s+(.*)\s+(<|\()(.*)(\)|>)/o - || m/^(\w+\s+\w+\s+\d{1,2},?\s*\d{4})\s+(.*)\s+(<|\()(.*)(\)|>)/o + } elsif (m/^(\w+\s+\w+\s+\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}\s+[\w\s]*\d{4})\s+(.*)\s+[<\(](.*)[\)>]/o + || m/^(\w+\s+\w+\s+\d{1,2},?\s*\d{4})\s+(.*)\s+[<\(](.*)[\)>]/o || m/^(\w[-+0-9a-z.]*) \(([^\(\) \t]+)\)\;?/io - || m/^([\w.+-]+)(-| )(\S+) Debian (\S+)/io + || m/^([\w.+-]+)[- ](\S+) Debian (\S+)/io || m/^Changes from version (.*) to (.*):/io || m/^Changes for [\w.+-]+-[\w.+-]+:?\s*$/io || m/^Old Changelog:\s*$/io diff --git a/scripts/Dpkg/Deps.pm b/scripts/Dpkg/Deps.pm index 8eb04fdc0..fe783c178 100644 --- a/scripts/Dpkg/Deps.pm +++ b/scripts/Dpkg/Deps.pm @@ -557,7 +557,7 @@ sub parse_string { )? # end of optional part (?: # start of optional part \s* \( # open parenthesis for version part - \s* (<<|<=|=|>=|>>|<|>) # relation part + \s* (<<|<=|=|>=|>>|[<>]) # relation part \s* (.*?) # do not attempt to parse version \s* \) # closing parenthesis )? # end of optional part |