I would be glad to have some option in pbuilder to enable 'cupt' mode in pbuilder, i.e. using cupt for package management. Cupt is a front-end to dpkg that has some benefits like a possibility to download only binary package deltas for upgrading (using debdelta(1)). For pbuilder, it has the 'satisfy' command, so pbuilder can schedule build dependencies and conflicts without a dummy package.
Here is the proposed (working for me for '--update' and '--build' functionality) patch.
Hi, I've looked through this patch. I have a few questions for you. Why ? I think you should fix cupt to accept -y. I'd rather have cupt wrapper accepting same command-line as apt-get than adding if's here... I don't generally like this change to 'sh -c' because it will need another layer of having to care about quoting. I guess you should fix cupt.
Hi Junichi, Junichi Uekawa wrote: Because unless I do that, /usr/lib/pbuilder/pbuilder-checkparams will fail to recognize '--cupt' param, as it will see only the name of .dsc to build. Well, I don't have to, however I will. But anyway, what's wrong with current variant? Why have I? Extra lines? Cupt is other package manager, and though it has similar commands and options, but it doesn't need to follow apt-get precisely. However you have several other places in code with 'sh -c' here and there. Why? I will probably implement '-y' switch later, but again, I see nothing wrong in having "echo 'y'", at least in starter patch.
Hi Junichi, Now I realized right option order for --build, and implemented '-y' in cupt. The patch became less intrusive.
Hi, From my perspective, a patch that treats cupt, apt, and aptitude equally would be more desirable. Rather than '--cupt' I would rather have '--apt-get=apt-get', or '--apt-get=aptitude', or '--apt-get=cupt'. How does that sound? At Mon, 26 Oct 2009 12:53:58 +0200, Eugene V. Lyubimkin wrote:
Hi Junichi, Junichi Uekawa wrote: Well, '--apt-get=cupt' sounds weird for me. However I'd be fine with something like '--package-manager=cupt' or like that.
Hi, At Sat, 28 Nov 2009 18:04:37 +0200, Eugene V. Lyubimkin wrote: Sounds good to me.
Hi, I updated a patch to use '--package-manager <pm>' syntax.