nexus-apt-plugin
nexus-apt-plugin copied to clipboard
Packages without dependencies are not installable
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'.
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.
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