diff --git a/pmb/helpers/repo.py b/pmb/helpers/repo.py index 5738a9fb..92312ea3 100644 --- a/pmb/helpers/repo.py +++ b/pmb/helpers/repo.py @@ -63,6 +63,4 @@ def diff(args, files_a, files_b=None): if add: ret.append(arch + "/" + file) - - return sorted(ret) diff --git a/test/repo.py b/test/repo.py index c570e29b..b35e3b99 100644 --- a/test/repo.py +++ b/test/repo.py @@ -20,7 +20,6 @@ import os import sys import pytest import types -import pathlib import time # Import from parent directory @@ -35,6 +34,7 @@ def args(request, tmpdir): args.work = str(tmpdir) return args + def clear_timestamps_from_files(files): """ Replace all last modified timestamps from pmb.helpers.repo.files() with @@ -54,7 +54,7 @@ def test_files_not_empty(args): pkgs = args.work + "/packages" for dir in ["", "armhf", "x86_64"]: os.mkdir(pkgs + "/" + dir) - open(pkgs+"/x86_64/test", "a").close() + open(pkgs + "/x86_64/test", "a").close() files = pmb.helpers.repo.files(args) clear_timestamps_from_files(files) assert files == {"armhf": {}, "x86_64": {"test": None}}