Bug 1832171

Summary: DeprecationWarning messages when running checks
Product: [Fedora] Fedora Reporter: Bruno Goncalves <bgoncalv>
Component: rpmdeplintAssignee: František Zatloukal <fzatlouk>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: djc, fzatlouk, mvadkert
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rpmdeplint-1.4-14.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-24 10:03:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bruno Goncalves 2020-05-06 09:18:08 UTC
Description of problem:
when running rpmdeplint DeprecationWarning messages are shown, like:

/usr/lib64/python3.8/site-packages/hawkey/__init__.py:348: DeprecationWarning: The class hawkey.Repo is deprecated. Please use dnf.repo.Repo instead. The class will be removed on 2019-12-31.
  warnings.warn(msg, DeprecationWarning)
/usr/lib/python3.8/site-packages/rpmdeplint/__init__.py:249: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  logger.warn('Ignoring pre-existing repoclosure problem: %s', problem_msg)


Version-Release number of selected component (if applicable):
rpmdeplint-1.4-13.fc32.noarch

How reproducible:
100%

Steps to Reproduce:
1.Download rpms from some recent koji build:
koji download-build --arch x86_64 --arch noarch --arch i686 --noprogress --debuginfo knot-2.9.4-1.fc32
2.Run rpmdeplint
rpmdeplint check-repoclosure --repo Fedora-32-repo,https://kojipkgs.fedoraproject.org/compose/branched/latest-Fedora-32/compose/Everything/x86_64/os --repo koji-f32-repo,https://kojipkgs.fedoraproject.org/repos/f32-build/latest/x86_64  --arch=x86_64 *.rpm


Actual results:
# rpmdeplint check-repoclosure --repo Fedora-32-repo,https://kojipkgs.fedoraproject.org/compose/branched/latest-Fedora-32/compose/Everything/x86_64/os --repo koji-f32-repo,https://kojipkgs.fedoraproject.org/repos/f32-build/latest/x86_64  --arch=x86_64 *.rpm
/usr/lib64/python3.8/site-packages/hawkey/__init__.py:348: DeprecationWarning: The class hawkey.Repo is deprecated. Please use dnf.repo.Repo instead. The class will be removed on 2019-12-31.
  warnings.warn(msg, DeprecationWarning)
/usr/lib64/python3.8/site-packages/hawkey/__init__.py:348: DeprecationWarning: The class hawkey.Repo is deprecated. Please use dnf.repo.Repo instead. The class will be removed on 2019-12-31.
  warnings.warn(msg, DeprecationWarning)
/usr/lib/python3.8/site-packages/rpmdeplint/__init__.py:249: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  logger.warn('Ignoring pre-existing repoclosure problem: %s', problem_msg)
2020-05-06 09:16:25,139 rpmdeplint WARNING Ignoring pre-existing repoclosure problem: nothing provides mvn(net.iharder:base64) needed by Java-WebSocket-1.3.8-4.fc31.noarch
/usr/lib/python3.8/site-packages/rpmdeplint/__init__.py:249: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  logger.warn('Ignoring pre-existing repoclosure problem: %s', problem_msg)
<snip>

Expected results:
no DeprecationWarning messages

Comment 1 František Zatloukal 2020-05-20 14:46:11 UTC
rpmdeplint-1.4-14.fc32 should fix the issue. Available from: https://bodhi.fedoraproject.org/updates/FEDORA-2020-c16323079b

Bruno, can you verify and give karma if it works as you need?

Comment 2 Bruno Goncalves 2020-05-21 08:49:23 UTC
Thanks, I did check rpmdeplint-1.4-14.fc32.noarch and the problem seem to be solved.