[Bug 34376] Re: debmirror try to mirror section main/debian-installer on all dists

2007-05-29 Thread dotmatt
Couldn't you just use 2 debmirror statements in your cronjob?  One for
DIST=feisty, and the other for DIST=feisty-updates,f-b,f-s ?

-- 
debmirror try to mirror section main/debian-installer on all dists
https://bugs.launchpad.net/bugs/34376
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 34376] Re: debmirror try to mirror section main/debian-installer on all dists

2007-05-29 Thread dotmatt
D'oh -- no you cannot just use 2 debmirror statements, unless you list
two unique locat target locations.  Using debmirror twice with the same
target causes the first to be deleted by the second as unnecessary
packages.

-- 
debmirror try to mirror section main/debian-installer on all dists
https://bugs.launchpad.net/bugs/34376
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 34376] Re: debmirror try to mirror section main/debian-installer on all dists

2007-05-04 Thread Net Venture
More information added.

-- 
debmirror try to mirror section main/debian-installer on all dists
https://bugs.launchpad.net/bugs/34376
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 34376] Re: debmirror try to mirror section main/debian-installer on all dists

2007-05-03 Thread Net Venture
I'll try to describe this to be more easy.

I have a netboot setup in my LAN so that I can boot and install ubuntu
from the a local server. To netboot and install,  the main/debian-
installer section needs to be available in my local mirror. I use
preseeding to configure mirror information and packages so that
souces.list  points to my local server instead of archive.ubuntu.com
(and installation requires almost no manual intervention). To that
extent, my debmirror configuration automatically fetches the following:

DIST=feisty
SECTIONS=main,restricted,universe,multiverse,main/debian-installer

I run the debmirror script every night in a cronjob so that it stays
updated with http://gb.archive.ubuntu.com. That means that updates that
come to feisty repo will automatically hit my local mirror. This
configuration allows me to install feisty with only the feisty repo
available (updates, backports and security updates not available in
local mirror and not available to clients).

But this means that the client has to use the internet and connect to
archive.ubuntu.com to download other repos (fesity-updates, feisty-
backports, feisty-security). I trust my LAN server and have no fear of
it getting compromised, so I would like to host all the repos (including
feisty-security) locally.

If I change the debmirror configuration to:

DIST=feisty,feisty-updates,feisty-backports,feisty-security
SECTIONS=main,restricted,universe,multiverse,main/debian-installer

It will try to download all updates but will fail when trying to get
main/debian-installer from feisty-security (or backports, updates).
Removing main/debian-installer will eliminate the problem, and all the
repos will be downloaded. But I won't be able to netboot and install.
(Note: debmirror automatically cleans the mirror, so anything that is
not in the DIST and SECTIONS will be removed. This means that I cannot
have 2 scripts; one to download main/debian-installer without all the
other repos and another script to download the other repos without main
/debian-installer)

FYI, in dapper, I am able to download all repos and the main/debian-
installer section since dapper-security has a main/debian-installer
section. But the section was added later, until which I had the same
problem as I described above.

Summarizing the usecase problem is that I if feisty-security does not
have a main/debian-installer section, local mirrors cannot serve feisty-
security to their clients. If they do add feisty-security, then they
will not be able to netboot and do automated installs.

Two possible solutions come to mind (and also suggested by Carlos Javier):
1. Modify debmirror to ignore repos that do not have main/debian-installer
2. Create main/debian-installer sections automatically for all repos

The second option sounds more simple and easy. (When feisty was
released, there was feisty-security available, but no packages in it.
This allowed the feisty ISO to enable the security repo without clients
getting any 404 errors. Later, when packages were added to feisty-
security, it trickled down to clients (through update-manager) without
any additional sources.list modification.

Hope that helped.
--NetVenture

FYI, here is my debmirror wrapper script for dapper:

#/bin/bash
DEST=/home/Repository-ubuntu-dapper
HOST=gb.archive.ubuntu.com
ARCH=i386
DIST=dapper,dapper-security,dapper-updates,dapper-backports
SECTION=main,universe,multiverse,restricted,main/debian-installer

/usr/bin/debmirror --dist=${DIST} --section=${SECTION} ${DEST}
# End of script

-- 
debmirror try to mirror section main/debian-installer on all dists
https://bugs.launchpad.net/bugs/34376
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 34376] Re: debmirror try to mirror section main/debian-installer on all dists

2006-09-13 Thread KarlGoetz
How is this a bug? if the directory doesnt exist, debmirror cant mirror
from it.

** Changed in: debmirror (Ubuntu)
   Status: Unconfirmed = Needs Info

-- 
debmirror try to mirror section main/debian-installer on all dists
https://launchpad.net/bugs/34376

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 34376] Re: debmirror try to mirror section main/debian-installer on all dists

2006-09-13 Thread CarlosJavier
In my opinion, as main/debian-installer is not a section which is
present all the time on all the dists, debmirror should have a
condictional that check if exist.

The other option is to make madatory for the archive to have
dists/*/main/debian-installer even when there is any packages for it.

I don't know if you don 't see the problem here, but the thing is, that
with the actual debmirror you have to separate in diference directory
each dists, in order to be able to mirror main/debian-installer:

Means that you have this:
ubuntu
  dists
dapper
  main
debian-installer
  restricted
  universe
  multiverse
ubuntu-security
  dists
dapper-security
  main
  restricted
  ...
  ...
...

Instead of:
ubuntu
  dists
dapper
  main
debian-installer
  restricted
  universe
  multiverse
dapper-security
 main
  restricted
  ...
  ...
...

BTW, I write a mail to the author and this was his response:

You have to edit the script so it knows where to skip non-existing
sections. Debmirror was never written to handle different sections per
suite.

In line 631 add for example

   next if ($section =~ /debian-installer/  $dist =~ /.*-security/);

MfG
   Goswin

Carlos Javier

-- 
debmirror try to mirror section main/debian-installer on all dists
https://launchpad.net/bugs/34376

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs