I'm building a package from source in Debian Wheezy, which has a few build-deps that cannot be satisfied by stable. Therefore, I use a few packages from unstable, testing and wheezy-backports.
The best way to do these until now has been to combine the commands using "&&" and using the "-y" switch, like this:
apt-get -y -t testing install pkg1 && apt-get -y -t wheezy-backports install pkg2 && apt-get -y install pkg3
But this still makes apt-get read the package list and check for dependencies for every apt-get separated with "&&". My build-machine is quite slow, and every step takes a lot of time, and I hoped I could shave of a few minutes by saving the redundant package-list reading and dependency checking and get apt-get to do it all at once, something like this:
apt-get -t testing install pkg1, -t wheezy-backports install pkg2, install pkg3
I haven't been able to find anything about the topic, and am not too optimistic, but maybe someone knows a way?