I add this lines to my preferences file to get the local apt-build
source have the priority:

Package: *
Pin: release o=apt-build
Pin-Priority: 990
Package: *
Pin: release o=lucid
Pin-Priority: 100

I use apt-build to build bind9, here is the output of apt-cache policy:

bra...@braiam-desktop:~$ apt-cache policy bind9
bind9:
  Instalados: 1:9.7.0.dfsg.P1-1
  Candidato: 1:9.7.0.dfsg.P1-1
  Tabla de versiĆ³n:
 *** 1:9.7.0.dfsg.P1-1 0
        500 file:/var/cache/apt-build/repository/ stable/main Packages
        500 file:/var/cache/apt-build/repository/ apt-build/main Packages
        100 /var/lib/dpkg/status
     1:9.7.0.dfsg.P1-1 0
        500 http://do.archive.ubuntu.com/ubuntu/ lucid/main Packages
bra...@braiam-desktop:~$ 

You have to modify depending of your requirements.

-- 
apt doesn't respect repository order or pin preference
https://bugs.launchpad.net/bugs/572613
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