Skip to content

Add support for Vagrant packages #20930

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Aug 29, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
…-vagrant
  • Loading branch information
KN4CK3R committed Aug 26, 2022
commit 64ac1d6a3d30f6170dd386019962ef766e1cf393
2 changes: 1 addition & 1 deletion routers/api/packages/vagrant/vagrant.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,5 @@ func DownloadPackageFile(ctx *context.Context) {
}
defer s.Close()

ctx.ServeStream(s, pf.Name)
ctx.ServeContent(pf.Name, s, pf.CreatedUnix.AsLocalTime())
}
1 change: 1 addition & 0 deletions templates/package/view.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
{{template "package/metadata/pypi" .}}
{{template "package/metadata/rubygems" .}}
{{template "package/metadata/vagrant" .}}
<div class="item">{{svg "octicon-database" 16 "mr-3"}} {{FileSize .PackageDescriptor.CalculateBlobSize}}</div>
</div>
{{if not (eq .PackageDescriptor.Package.Type "container")}}
<div class="ui divider"></div>
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.