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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user