Skip to content

Commit

Permalink
KPMP-5665: add that package_id
Browse files Browse the repository at this point in the history
  • Loading branch information
zwright committed Dec 17, 2024
1 parent a0decea commit 24d2a25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/packageChecker/packageChecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def find_empty_packages(self, move_derived=False):
for state in package_states:
if state['state'] == "UPLOAD_SUCCEEDED":
try:
directory = data_directory + "/package_";
files = os.listdir(directory + package_id)
directory = data_directory + "/package_" + package_id;
files = os.listdir(directory)
expected_file_names = self.get_expected_files(package)
actual_file_names = []
if len(files) == 0:
Expand Down Expand Up @@ -135,7 +135,7 @@ def find_empty_packages(self, move_derived=False):

def move_file_to_derived(self, package_directory, file_name):
derived_dir = package_directory + "/derived"
file_path = package_directory + file_name
file_path = package_directory + "/" + file_name
print(f"Moving file '{file_path}' to '{derived_dir}'.")

# if not os.path.exists(derived_dir):
Expand Down

0 comments on commit 24d2a25

Please sign in to comment.