1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Revert "Add Debian package registry" (#24412)

Reverts go-gitea/gitea#22854
This commit is contained in:
Yarden Shoham
2023-04-29 01:06:41 +03:00
committed by GitHub
parent bf77e2163b
commit c0ddec8a2a
57 changed files with 96 additions and 1995 deletions

View File

@@ -173,7 +173,7 @@ const (
)
// PackageSearchOptions are options for SearchXXX methods
// All fields optional and are not used if they have their default value (nil, "", 0)
// Besides IsInternal are all fields optional and are not used if they have their default value (nil, "", 0)
type PackageSearchOptions struct {
OwnerID int64
RepoID int64
@@ -192,9 +192,7 @@ type PackageSearchOptions struct {
func (opts *PackageSearchOptions) toConds() builder.Cond {
cond := builder.NewCond()
if !opts.IsInternal.IsNone() {
cond = builder.Eq{
"package_version.is_internal": opts.IsInternal.IsTrue(),
}
cond = builder.Eq{"package_version.is_internal": opts.IsInternal.IsTrue()}
}
if opts.OwnerID != 0 {