Skip to content

Commit

Permalink
Fix modifyrepo wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
dmach committed Dec 19, 2023
1 parent 928eb39 commit acaf678
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/productcomposer/wrappers/modifyrepo.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

from pydantic.types import DirectoryPath
from pydantic.types import FilePath

Expand All @@ -14,8 +16,8 @@ class ModifyrepoWrapper(BaseWrapper):
mdtype: str | None = Field()

def get_cmd(self):
directory = os.path.join(self.directory, "repodata")
cmd = ["modify", self.file, directory]
directory = self.directory / "repodata"
cmd = ["modifyrepo", self.file.as_posix(), directory.as_posix()]

cmd.append("--unique-md-filenames")
cmd.append(f"--checksum={self.checksum_type}")
Expand Down

0 comments on commit acaf678

Please sign in to comment.