Persisting meta information about release.

This commit is contained in:
Andrey Smirnov
2013-12-19 18:18:09 +04:00
parent 08f045d503
commit f7f4ba1691
2 changed files with 21 additions and 1 deletions

9
debian/remote.go vendored
View File

@@ -30,7 +30,9 @@ type RemoteRepo struct {
// List of components to fetch, if empty, then fetch all components
Components []string
// List of architectures to fetch, if empty, then fetch all architectures
Architectures []string
Architectures []string
// Meta-information about repository
Meta debc.Paragraph
archiveRootURL *url.URL
}
@@ -126,6 +128,11 @@ func (repo *RemoteRepo) Fetch(d utils.Downloader) error {
}
}
delete(para, "MD5Sum")
delete(para, "SHA1")
delete(para, "SHA256")
repo.Meta = para
return nil
}