nexus-apt-plugin icon indicating copy to clipboard operation
nexus-apt-plugin copied to clipboard

Packages without dependencies are not installable

Open aluedeke opened this issue 12 years ago • 2 comments

i tried to install a package without a Depends property in its control file. I would expect, that the Package.gz also lacks this property. But i realized that the Package.gz file contains the following entry:

Depends: null

During package installation apt complains that i cannot retrieve Package with name 'null'.

aluedeke avatar Oct 14 '12 21:10 aluedeke

It looks like the plugin always adds Depends: null, even if no dependencies were listed, see https://github.com/sannies/nexus-apt-plugin/blob/master/src/main/java/com/github/sannies/nexusaptplugin/DebianContentLocator.java#L59 A null check should fix it.

stefan-enev avatar Jan 29 '13 12:01 stefan-enev

Pull request added for this in https://github.com/sannies/nexus-apt-plugin/pull/3 along with support for other fields like 'Provides'

Best, Nikola

nikolavp avatar Jan 29 '13 14:01 nikolavp