I'm seeing this problem too. Looking at /usr/bin/prevu-init or /usr/bin
/prevu-update, it's pretty obvious what's happening:

ret=os.system('pbuilder create --basetgz /var/cache/prevu/%s.tgz
--buildplace /var/cache/prevu/builds --distribution %s --override-config
--othermirror "deb http://archive.ubuntu.com/ubuntu %s main restricted
universe multiverse | deb http://archive.ubuntu.com/ubuntu %s-backports
main restricted universe multiverse | deb
http://archive.ubuntu.com/ubuntu %s-security main restricted universe
multiverse | deb http://archive.ubuntu.com/ubuntu %s-updates main
restricted universe multiverse | deb file:/var/cache/prevu/%s-debs ./"
--bindmounts "/var/cache/prevu/%s-debs" --distribution %s' %
(DIST,DIST,DIST,DIST,DIST,DIST,DIST,DIST,DIST) )

It's hard coded to use archive.ubuntu.com as the --othermirror field,
which is massively incorrect. First, hardcoding something like this with
no override option is a terrible idea, as I've got systems with no
internet access that I'd like to use as automated build systems. They've
got access to a local apt repo, which is what they should use. Second,
it should really use the --mirror flag if it's going to use anything, so
that users can use OTHERMIRROR in /etc/pbuilderrc, which is correctly
described in the man page as:

  "These lines appear at the beginning of the constructed sources file,
so this is the place to list your local mirror sites; apt will  then use
them in preference to the ones listed in --mirror."

So, I'd propose the following changes: switching --othermirror to
--mirror in the prevu-init and prevu-update scripts, and having an
override option in the prevu script itself to specify mirror lines or a
mirror file to use.

-- 
prevu uses achive.ubuntu.com and fails even though ports.ubuntu.com i specified 
both as mirrorsite and othermirror
https://bugs.launchpad.net/bugs/298046
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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

Reply via email to