sonatype-nexus-community / nexus-repository-apt

A Nexus Repository 3 plugin that allows usage of apt repositories
Eclipse Public License 1.0
105 stars 50 forks source link

Incorrect format of Date field in Release file #95

Closed dodizzle closed 5 years ago

dodizzle commented 5 years ago

Install debian package from nexus with hosted apt repo.

In order to fetch debian packages that have been uploaded to a hosted apt repo.

According to this document https://wiki.debian.org/DebianRepository/Format#Date.2C_Valid-Until The format of the Date field in the Release file needs to be in UTC format. Currently it is in GMT format. The error I receive when attempting to fetch a package from the hosted apt repo is " Unknown date format Bad header data".

From my Release file:

"Date: Fri, 25 Jan 2019 21:17:42 GMT"

https://github.com/sonatype-nexus-community/nexus-repository-apt/blob/master/src/main/java/net/staticsnow/nexus/repository/apt/internal/hosted/AptHostedFacet.java