Skip to content

Commit

Permalink
fixup! WIP: Split out pulp-glue-deb
Browse files Browse the repository at this point in the history
  • Loading branch information
quba42 committed Feb 7, 2024
1 parent a1c16ce commit 2652176
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 33 deletions.
27 changes: 13 additions & 14 deletions pulpcore/cli/deb/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@
from pulp_glue.common.context import PulpEntityContext
from pulp_glue.common.i18n import get_translation
from pulp_glue.core.context import PulpArtifactContext
from pulp_glue.deb.context import (
PulpAptRepositoryContext,
PulpDebGenericContentContext,
PulpDebInstallerFileIndexContext,
PulpDebInstallerPackageContext,
PulpDebPackageContext,
PulpDebPackageIndexContext,
PulpDebPackageReleaseComponentContext,
PulpDebReleaseArchitectureContext,
PulpDebReleaseComponentContext,
PulpDebReleaseContext,
PulpDebReleaseFileContext,
)
from pulpcore.cli.common.generic import (
PulpCLIContext,
chunk_size_option,
Expand All @@ -21,20 +34,6 @@
type_option,
)

from pulp_glue.deb.context import (
PulpAptRepositoryContext,
PulpDebGenericContentContext,
PulpDebInstallerFileIndexContext,
PulpDebInstallerPackageContext,
PulpDebPackageContext,
PulpDebPackageIndexContext,
PulpDebPackageReleaseComponentContext,
PulpDebReleaseArchitectureContext,
PulpDebReleaseComponentContext,
PulpDebReleaseContext,
PulpDebReleaseFileContext,
)

translation = get_translation(__name__)
_ = translation.gettext

Expand Down
3 changes: 1 addition & 2 deletions pulpcore/cli/deb/distribution.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import gettext

import click
from pulp_glue.deb.context import PulpAptDistributionContext, PulpAptRepositoryContext
from pulpcore.cli.common.generic import (
PulpCLIContext,
base_path_contains_option,
Expand All @@ -18,8 +19,6 @@
update_command,
)

from pulp_glue.deb.context import PulpAptDistributionContext, PulpAptRepositoryContext

_ = gettext.gettext


Expand Down
13 changes: 6 additions & 7 deletions pulpcore/cli/deb/publication.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import gettext

import click
from pulp_glue.core.context import PulpSigningServiceContext
from pulp_glue.deb.context import (
PulpAptPublicationContext,
PulpAptRepositoryContext,
PulpVerbatimPublicationContext,
)
from pulpcore.cli.common.generic import (
PulpCLIContext,
create_command,
Expand All @@ -12,13 +18,6 @@
resource_option,
show_command,
)
from pulp_glue.core.context import PulpSigningServiceContext

from pulp_glue.deb.context import (
PulpAptPublicationContext,
PulpAptRepositoryContext,
PulpVerbatimPublicationContext,
)

_ = gettext.gettext

Expand Down
5 changes: 2 additions & 3 deletions pulpcore/cli/deb/remote.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import click
from pulp_glue.common.i18n import get_translation
from pulp_glue.deb.context import PulpAptRemoteContext
from pulpcore.cli.common.generic import (
PulpCLIContext,
common_remote_create_options,
Expand All @@ -14,9 +16,6 @@
show_command,
update_command,
)
from pulp_glue.common.i18n import get_translation

from pulp_glue.deb.context import PulpAptRemoteContext

translation = get_translation(__name__)
_ = translation.gettext
Expand Down
13 changes: 6 additions & 7 deletions pulpcore/cli/deb/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
PulpEntityContext,
PulpRepositoryContext,
)
from pulp_glue.common.i18n import get_translation
from pulp_glue.deb.context import (
PulpAptRemoteContext,
PulpAptRepositoryContext,
PulpDebPackageContext,
)
from pulpcore.cli.common.generic import (
PulpCLIContext,
create_command,
Expand All @@ -31,15 +37,8 @@
update_command,
version_command,
)
from pulp_glue.common.i18n import get_translation
from pulpcore.cli.core.generic import task_command

from pulp_glue.deb.context import (
PulpAptRemoteContext,
PulpAptRepositoryContext,
PulpDebPackageContext,
)

translation = get_translation(__name__)
_ = translation.gettext

Expand Down

0 comments on commit 2652176

Please sign in to comment.