Re: [Rpm-maint] [rpm-software-management/rpm] Implement a transaction set change notification callback (#1367)

2020-09-24 Thread Jaroslav Rohel
@pmatilai I am working on a new microdnf. I did some tests of your new C API. It is really an improvement. I have a better overview of the packages in the transaction now. There is still a grey area for me. Transaction elements with scriptlets. Example: The "iftop" package reinstall action runs

Re: [Rpm-maint] [rpm-software-management/rpm] Possible to make DNF create damned package-config files for every installed package? (#1371)

2020-09-24 Thread addstopbutton
Dear @pmatilai it's just a decent "enhancement request" acc to this: https://rpm.org/community.html -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/1371#issuecomment-698

[Rpm-maint] [rpm-software-management/rpm] 4.15.1: problem with rpm and --root option (#1372)

2020-09-24 Thread Tomasz Kłoczko
I've started experimenting with lxc and I'm trying to make some rpm database queries from outside lxc zone using `-r `. Looks like it is some issue with that option: ``` [root@barrel ~]# lxc-attach -n fedora -- rpm -qa | wc -l 329 ``` So using lxc to execute command inside zone it works however: `

Re: [Rpm-maint] [rpm-software-management/rpm] pythondistdeps: Switch to importlib.metadata (#1317)

2020-09-24 Thread Miro Hrončok
@hroncok commented on this pull request. > from warnings import warn +try: +from importlib.metadata import PathDistribution +except ImportError: +from importlib_metadata import PathDistribution + +try: +from pathlib import Path +except ImportError: +from pathlib2 import Path +

Re: [Rpm-maint] [rpm-software-management/rpm] pythondistdeps: Switch to importlib.metadata (#1317)

2020-09-24 Thread Steve Kowalik
@s-t-e-v-e-n-k commented on this pull request. > from warnings import warn +try: +from importlib.metadata import PathDistribution +except ImportError: +from importlib_metadata import PathDistribution + +try: +from pathlib import Path +except ImportError: +from pathlib2 import

Re: [Rpm-maint] [rpm-software-management/rpm] pythondistdeps: Switch to importlib.metadata (#1317)

2020-09-24 Thread Miro Hrončok
@hroncok commented on this pull request. > from warnings import warn +try: +from importlib.metadata import PathDistribution +except ImportError: +from importlib_metadata import PathDistribution + +try: +from pathlib import Path +except ImportError: +from pathlib2 import Path +

Re: [Rpm-maint] [rpm-software-management/rpm] pythondistdeps: Switch to importlib.metadata (#1317)

2020-09-24 Thread torsava
@torsava commented on this pull request. > from warnings import warn +try: +from importlib.metadata import PathDistribution +except ImportError: +from importlib_metadata import PathDistribution + +try: +from pathlib import Path +except ImportError: +from pathlib2 import Path +

Re: [Rpm-maint] [rpm-software-management/rpm] pythondistdeps: Switch to importlib.metadata (#1317)

2020-09-24 Thread Miro Hrončok
@hroncok commented on this pull request. > from warnings import warn +try: +from importlib.metadata import PathDistribution +except ImportError: +from importlib_metadata import PathDistribution + +try: +from pathlib import Path +except ImportError: +from pathlib2 import Path +

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: %{_system_bindir} and such macro (#721)

2020-09-24 Thread Zbigniew Jędrzejewski-Szmek
An alternative approach: let's accept the fact that %_bindir=/usr/bin is here to stay. Using a macro for "system binaries directory" is a legacy of old times and we can just as well use the fixed path of "/usr/bin" for that everywhere. (Using a macro for "where should I install my binaries", whi

Re: [Rpm-maint] [rpm-software-management/rpm] pythondistdeps: Switch to importlib.metadata (#1317)

2020-09-24 Thread torsava
@torsava commented on this pull request. > from warnings import warn +try: +from importlib.metadata import PathDistribution +except ImportError: +from importlib_metadata import PathDistribution + +try: +from pathlib import Path +except ImportError: +from pathlib2 import Path +

Re: [Rpm-maint] [rpm-software-management/rpm] pythondistdeps: Switch to importlib.metadata (#1317)

2020-09-24 Thread torsava
@torsava commented on this pull request. > from warnings import warn +try: +from importlib.metadata import PathDistribution +except ImportError: +from importlib_metadata import PathDistribution + +try: +from pathlib import Path +except ImportError: +from pathlib2 import Path +

Re: [Rpm-maint] [rpm-software-management/rpm] pythondistdeps: Switch to importlib.metadata (#1317)

2020-09-24 Thread Miro Hrončok
@hroncok commented on this pull request. > from warnings import warn +try: +from importlib.metadata import PathDistribution +except ImportError: +from importlib_metadata import PathDistribution + +try: +from pathlib import Path +except ImportError: +from pathlib2 import Path +

Re: [Rpm-maint] [rpm-software-management/rpm] pythondistdeps: Switch to importlib.metadata (#1317)

2020-09-24 Thread torsava
@torsava commented on this pull request. > if normalized_names_require_pep503: -dep_normalized_name = normalize_name(dep.project_name) +dep_normalized_name = normalize_name(dep.name) else:

Re: [Rpm-maint] [rpm-software-management/rpm] pythondistdeps: Switch to importlib.metadata (#1317)

2020-09-24 Thread Miro Hrončok
@hroncok commented on this pull request. > if normalized_names_require_pep503: -dep_normalized_name = normalize_name(dep.project_name) +dep_normalized_name = normalize_name(dep.name) else:

Re: [Rpm-maint] [rpm-software-management/rpm] pythondistdeps: Switch to importlib.metadata (#1317)

2020-09-24 Thread torsava
@torsava commented on this pull request. > if normalized_names_require_pep503: -dep_normalized_name = normalize_name(dep.project_name) +dep_normalized_name = normalize_name(dep.name) else:

Re: [Rpm-maint] [rpm-software-management/rpm] pythondistdeps: Switch to importlib.metadata (#1317)

2020-09-24 Thread Miro Hrončok
@hroncok commented on this pull request. > else: -dep_normalized_name = dep.key +dep_normalized_name = dep.key.replace('_', '-') The code allows both naming conventions. We need to preserve that. ideally, we would have our ow

Re: [Rpm-maint] [rpm-software-management/rpm] pythondistdeps: Switch to importlib.metadata (#1317)

2020-09-24 Thread torsava
@torsava commented on this pull request. > else: -dep_normalized_name = dep.key +dep_normalized_name = dep.key.replace('_', '-') The newest version looks good to me, and tests are passing. The [documentation for pkg_resource