[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#761863: debsources: use relative paths in cache/sources.txt



Package: qa.debian.org
Severity: minor
User: qa.debian.org@packages.debian.org
Usertags: debsources

A typical cache/sources.txt line currently looks like this:

  susv3	  6.1		    contrib /srv/debsources/testdata/mirror/pool/contrib/s/susv3/susv3_6.1.dsc /srv/debsources/sources/contrib/s/susv3/6.1 jessie,squeeze,wheezy,sid

the use of absolute paths is undesirable and has no good reason to exist.
We should use relative paths:

- 4th field should be relative to conf['mirror_dir']
- 5th field should be relative to conf['sources_dir']

(see test_updater.py for reference)

bin/foreach should then be adapted to work properly with relative paths
sources.txt.


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


Reply to: