mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-20 19:38:39 +00:00
Persisting meta information about release.
This commit is contained in:
9
debian/remote.go
vendored
9
debian/remote.go
vendored
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user