Skip to content

Commit

Permalink
Fix APT_BY_HASH setting
Browse files Browse the repository at this point in the history
fixes #984
  • Loading branch information
daviddavis committed Dec 18, 2023
1 parent b2b1bfa commit 94c8f19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/984.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed a bug where enabling the ``APT_BY_HASH`` setting did not enable the feature.
4 changes: 1 addition & 3 deletions pulp_deb/app/tasks/publishing.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
CHECKSUM_TYPE_MAP,
)

from pulp_deb.app.settings import APT_BY_HASH

import logging
from gettext import gettext as _

Expand Down Expand Up @@ -356,7 +354,7 @@ def finish(self):
gz_package_index.save()

# Generating metadata files using checksum
if APT_BY_HASH:
if settings.APT_BY_HASH:
for path, index in (
(package_index_path, package_index),
(gz_package_index_path, gz_package_index),
Expand Down

0 comments on commit 94c8f19

Please sign in to comment.