Indexer: Support reading date from .deb archives

This commit is contained in:
Yorhel 2016-11-20 09:01:33 +01:00
parent a1e5a2d80d
commit ecb1a9e25b
8 changed files with 78 additions and 23 deletions

View file

@ -68,7 +68,7 @@ fn handlepkg(pg: &postgres::GenericConnection, sys: i32, mirror: &str, manpkgs:
cat: &section,
pkg: &name,
ver: &version,
date: "1980-01-01", // TODO: Fetch date from somewhere (package contents itself, likely)
date: pkg::Date::Deb,
arch: Some(arch),
file: open::Path{
path: &uri,