mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-03 09:52:26 +02:00
Revert "Add Debian package registry" (#24412)
Reverts go-gitea/gitea#22854
This commit is contained in:
parent
bf77e2163b
commit
c0ddec8a2a
57 changed files with 96 additions and 1995 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue