diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-02-05 10:03:06 +0200 |
---|---|---|
committer | Till Maas <opensource@till.name> | 2011-02-20 19:09:21 +0100 |
commit | c9c8c71a1204fbd4dc19fe525f62b04b5fd1134f (patch) | |
tree | a195c44ea43221ced4e8b5d5d78fb9dd86211632 /cnucnu/package_list.py | |
parent | fb56c0e01105d4ab1a34920f377c66277465d534 (diff) | |
download | cnucnu-c9c8c71a1204fbd4dc19fe525f62b04b5fd1134f.tar.gz cnucnu-c9c8c71a1204fbd4dc19fe525f62b04b5fd1134f.tar.xz cnucnu-c9c8c71a1204fbd4dc19fe525f62b04b5fd1134f.zip |
Implement subdirectory handling.
Each /^/ in the given URL is replaced by the latest version dir at that level.
Diffstat (limited to 'cnucnu/package_list.py')
-rwxr-xr-x | cnucnu/package_list.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cnucnu/package_list.py b/cnucnu/package_list.py index de15cdb..182795d 100755 --- a/cnucnu/package_list.py +++ b/cnucnu/package_list.py @@ -229,9 +229,10 @@ class Package(object): def get_html(self): if not self._html: - from cnucnu.helper import get_html + from cnucnu.helper import get_html, expand_subdirs try: + self.__url = expand_subdirs(self.url) html = get_html(self.url) # TODO: get_html should raise a generic retrieval error except IOError, ioe: |