Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add apt-rpm (altlinux-specific) repositories support #1444

Open
enp opened this issue Apr 11, 2024 · 0 comments
Open

Add apt-rpm (altlinux-specific) repositories support #1444

enp opened this issue Apr 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@enp
Copy link

enp commented Apr 11, 2024

Hi,

Are you have a plans for apt-rpm (altlinux-specific) repositories support?

See https://www.altlinux.org/Ownrepo for reference how to create apt-rpm repositories in altlinux environment

Technically, apt-rpm index is just one file pkglist which is really simple to read via rpm-python binding:

import rpm

with open('pkglist.classic') as f:
    hdrs = rpm.readHeaderListFromFD(f.fileno())
    for hdr in hdrs:
        for tag in hdr.keys():
            print(f'{tag} => {hdr[tag]}')
    del hdrs

I suppose function writeHeaderListToFD should write similar data to index file back - I see mention of this function in https://fossies.org/linux/misc/old/rpm-5.2.1.tar.gz/rpm-5.2.1/CHANGES but no implementation in /usr/lib64/python3/site-packages/rpm/__init__.py

So, see C implementation of reading/writing pkglist file:

Is it possible to implement something like above in artipie with own rpm implementation?

@enp enp added the enhancement New feature or request label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant