[Piuparts-devel] Bug#825487: Bug#825487: Bug#825487: Patch

Holger Levsen holger at layer-acht.org
Thu Jun 2 09:38:18 UTC 2016


control: tags -1 - patch
thanks

On Thu, Jun 02, 2016 at 11:02:59AM +0200, Andreas Beckmann wrote:
> (or better better a test whether we have apt >= 1.2 (is that the correct
> version?))

that seems sensible indeed…

> disregarding the list_installed_files bits (or maybe continue using dpkg
> for them in any case) it should roughly look like this:
> 
> if (apt_get_can_install_debs) {
>     apt-get -y install the.deb
> } else {
>     dpkg -i the.deb
>     apt-get -y install
> }

that too.

and then I wonder, shouldn't this use "apt" instead of "apt-get"? (or
maybe better: use apt or apt-get or aptitude, depending on user choice,
defaulting to apt?)


-- 
cheers,
	Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20160602/fc62cf98/attachment-0001.sig>


More information about the Piuparts-devel mailing list