[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apt doesn't handle properly the depends field or I'm missing something?



Hi, maybe I'm missing something (so please don't flog me :)) but I think
apt doesn't handle properly the Depends field.

Here there is an example, gallery depends on:
 >> Depends: apache | apache-ssl | apache-perl, ...

On my machine I haven't installed any of them, so if I run apt-get it
installs apache (which is the rule? It takes the first?):

  # apt-get install gallery
  Reading Package Lists... Done
  Building Dependency Tree... Done
  [ .. snip .. ]
  The following NEW packages will be installed:
    apache gallery libmm13 libnetpbm10 libtiff3g netpbm php4
  [ .. snip .. ]
  Do you want to continue? [Y/n]


But if I try to install gallery and apache-ssl, apt tries to install
both apache and apache-ssl.

  # apt-get install gallery apache-ssl
  Reading Package Lists... Done
  Building Dependency Tree... Done
  [ .. snip .. ]
  The following NEW packages will be installed:
    apache apache-ssl gallery libmm13 libnetpbm10 libtiff3g netpbm php4
  [ .. snip .. ]
  Do you want to continue? [Y/n]


If I really want to install gallery and apache-ssl and I really don't
want apache I have to run apt-get install as follows:

  # apt-get install gallery apache-ssl apache-
  [ .. snip .. ]
  The following NEW packages will be installed:
    apache-ssl gallery libmm13 libnetpbm10 libtiff3g netpbm php4
  [ .. snip .. ]
  Do you want to continue? [Y/n]


I'm missing something or this is an apt bug?

Thanks in advance,

-- 
 
Fabio Tranchitella
 
<!> kobold.it, Turin, Italy  - Free is better!
 
-----------------------------------------------------------------------
 <http://www.kobold.it>, <kobold@kobold.it>, <kobold@jabber.linux.it>
-----------------------------------------------------------------------
GPG Key fingerprint: 5465 6E69 E559 6466 BF3D  9F01 2BF8 EE2B 7F96 1564

Attachment: signature.asc
Description: Questa parte del messaggio =?ISO-8859-1?Q?=E8?= firmata


Reply to: