diff options
| author | Julian Andres Klode <jak@debian.org> | 2010-02-13 17:27:59 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2010-02-13 17:27:59 +0100 |
| commit | 24971a75407f0b28f2cb4e890545a0f5825af87d (patch) | |
| tree | 3fe76bce4e5eb988d89f3083223088479c53f30c /aptsources | |
| parent | eb37b3a44fe8e6f15de5211d89fcf63cdf2f6fa6 (diff) | |
| download | python-apt-24971a75407f0b28f2cb4e890545a0f5825af87d.tar.gz | |
* data/templates/*.in: Switch MirrorsFile to relative filenames.
- setup.py: Copy the mirror lists to the build directory
- aptsources/distinfo.py: Support relative filenames for MirrorsFile.
Diffstat (limited to 'aptsources')
| -rw-r--r-- | aptsources/distinfo.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/aptsources/distinfo.py b/aptsources/distinfo.py index 0aa34f20..19308348 100644 --- a/aptsources/distinfo.py +++ b/aptsources/distinfo.py @@ -220,6 +220,9 @@ class DistInfo(object): template.match_uri = value elif (field == 'MirrorsFile' or field == 'MirrorsFile-%s' % self.arch): + # Make the path absolute. + value = os.path.isabs(value) and value or \ + os.path.abspath(os.path.join(base_dir, value)) if value not in map_mirror_sets: mirror_set = {} try: |
