diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2012-09-20 23:16:36 +0300 |
---|---|---|
committer | Till Maas <opensource@till.name> | 2012-09-26 21:23:01 +0200 |
commit | 618ed580a2fd88a1b951ffea2a61b23cef8fbeb7 (patch) | |
tree | 871de5efaef87f239ab61649c89d871cb737b04c /cnucnu/package_list.py | |
parent | d817d974cab1f9271301d29a28c3895c208faa1f (diff) | |
download | cnucnu-618ed580a2fd88a1b951ffea2a61b23cef8fbeb7.tar.gz cnucnu-618ed580a2fd88a1b951ffea2a61b23cef8fbeb7.tar.xz cnucnu-618ed580a2fd88a1b951ffea2a61b23cef8fbeb7.zip |
Be less sensitive to amount of whitespace in Wiki lines.
Now copes with for example lines containing trailing whitespace.
Diffstat (limited to 'cnucnu/package_list.py')
-rwxr-xr-x | cnucnu/package_list.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cnucnu/package_list.py b/cnucnu/package_list.py index eddd022..e821fad 100755 --- a/cnucnu/package_list.py +++ b/cnucnu/package_list.py @@ -394,7 +394,7 @@ class PackageList: packages = [] repo.package_list = self - package_line_regex = re.compile(' \\* ([^ ]*) (.*) ([^ ]*)') + package_line_regex = re.compile('\s+\\*\s+(\S+)\s+(.+)\s+(\S+)\s*') for package_data in helper.match_interval(page_text, package_line_regex, "== List Of Packages ==", "<!-- END LIST OF PACKAGES -->"): (name, regex, url) = package_data nagging = True |