#3 introduce constant that would define name of modulemd file in repodata
Closed: Invalid 7 years ago Opened 7 years ago by lkocman.

As a follower of Lord of light, I want to stop putting random constants in my code. I already placed 'fm-metadata.yaml' and 'modulemd.yaml' into several places in pungi.

Let's look at example of extra file productid.pem the path in repodata is just productid. Which is flexible if you want to change format in the future.

So I'm proposing repodata/modulemd

Here's the proposal of a guy who's lazy to to parse repodata for modulemd

mmd = ModuleMetadata()

If you're going to be good developer, you're going to query repodata for mmd.REPODATA_FILENAME and ask for relpath in the destination. If you're lazy you just use mmd.REPODATA_FILENAME and hope for the best

wheres_my_file_in_repodata = os.path.join(os.getcwd(), mmd.REPODATA_FILENAME)

mmd.load(wheres_my_file_in_repodata)


This is a deliverable implementation detail. modulemd is about the generic concept of modules and therefore it doesn't belong there, imho.

@psabata changed the status to Invalid

7 years ago

Login to comment on this ticket.

Metadata