apt-mirror will not automatically create directories if base_path is non-default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-mirror (Debian) |
Fix Released
|
Unknown
|
|||
apt-mirror (Ubuntu) |
Fix Released
|
Low
|
Micah Gersten | ||
Lucid |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: apt-mirror
Hello,
I've been trying to get apt-mirror to use a different directory than the default one.
I noticed that the base-path setting in the apt-mirror config file is ignored.
After looking at the perl script I saw that the check for the three working directories is done before the processing of the config file.
Thus the alternative path setting would not be applied until after the setting of the work directories.
After putting that piece of code behind the processing of the config file code the alternative path worked.
I've attached a patch file that fixes the problem.
Rob Verduijn
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: apt-mirror 0.4.8-3
ProcVersionSign
Uname: Linux 2.6.35-25-generic i686
Architecture: i386
Date: Tue Mar 1 08:35:37 2011
PackageArchitec
ProcEnviron:
LANG=en_GB.utf8
SHELL=/bin/bash
SourcePackage: apt-mirror
tags: | added: patch |
summary: |
- apt-mirror ignores base-path setting in config file + apt-mirror will not automatically create directories if base_path is + non-default |
tags: | added: patch-forwarded-debian |
Changed in apt-mirror (Debian): | |
status: | Unknown → New |
Changed in apt-mirror (Debian): | |
status: | New → Fix Released |
Thank you for reporting this to Ubuntu. I just tried this package yesterday and had this issue that it wouldn't create the directories for me. I'm taking a look at your patch now.