Bug 1489494
| Summary: | Review Request: mock-core-configs - Mock core config files basic chroots | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miroslav Suchý <msuchy> |
| Component: | Package Review | Assignee: | Neal Gompa <ngompa13> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | Frodox, ngompa13, package-review, sergio |
| Target Milestone: | --- | Flags: | ngompa13:
fedora-review+
|
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-10-08 18:28:34 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Miroslav Suchý
2017-09-07 14:35:12 UTC
hawkey was retired in F26 ! in my f25 run [1], give me x86_64 , why not use `uname -m` ? [1] python3 -c "import dnf.rpm; import hawkey; print(dnf.rpm.basearch(hawkey.detect_arch()))" Taking this review. (In reply to Sergio Monteiro Basto from comment #1) > hawkey was retired in F26 ! in my f25 run [1], give me x86_64 , why not use > `uname -m` ? > > > [1] > python3 -c "import dnf.rpm; import hawkey; > print(dnf.rpm.basearch(hawkey.detect_arch()))" libdnf provides the Hawkey Python API. The Hawkey C API was removed. Yes. There is python3-hawkey, which in past used hawkey C API, but now it uses libdnf. DNF team just decided that it is not needed to change the python name. The functionality stays the same.
> why not use `uname -m`
because I want the get the same string as DNF use internally. And I do not want to be surprised on some secondary architectures where it may or not return slightly different results.
Please, don't run dnf/rpm/libdnf from scriptlet. It's worst thing ever! Also don't use hawkey directly, it will be retired soon-ish. > dnf/rpm/libdnf from scriptlet. It's worst thing ever!
I agree with dnf/rpm. Can you elaborate why not libdnf? Especially this
import hawkey; print(dnf.rpm.basearch(hawkey.detect_arch())
which does not touch/need transaction?
@Neal ping. Any progress? > Source: %{name}-%{version}.tar.gz
Change this to the URL, and then I will okay this.
Sigh. You are cruel. :) Spec URL: http://miroslav.suchy.cz/fedora/mock-core-configs.spec SRPM URL: http://miroslav.suchy.cz/fedora/mock-core-configs-27.2-1.fc26.src.rpm Now you know my pain. :) PACKAGE APPROVED. (fedrepo-req-admin): The Pagure repository was created at https://src.fedoraproject.org/rpms/mock-core-configs. You may commit to the branch "f27" in about 10 minutes. Fixed , package are in stable of all branches [1] . Thanks. [1] https://bodhi.fedoraproject.org/updates/?packages=mock-core-configs |