Wind River Support Network

HomeDefectsLINCD-1171
Fixed

LINCD-1171 : repoquery.py:614: SyntaxWarning: "is" with a literal

Created: Feb 20, 2020    Updated: Mar 19, 2020
Resolved Date: Mar 10, 2020
Found In Version: 10.20.3.0, 10.20.9.0
Fix Version: 10.20.12.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description

When running repoquery.py

/usr/lib64/python3.8/site-packages/dnf/cli/commands/repoquery.py:614: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?
 usedpkgs = set() if usedpkgs is None or level is -1 else usedpkgs

Steps to Reproduce

/lpg-build/cdc/fast_prod/WRLINUX_MASTER_WR/MASTER_WR_GIT/wrlinux-10/setup.sh --machines intel-x86-64 --distros wrlinux-ovp --templates feature/linux-yocto-dev feature/toolchain-next feature/userspace-next --dl-layers --accept-eula=yes
source oe-init-build-env build_wrlinux
echo KERNEL_FEATURES_append = \" features/usb/serial-all.scc\" >> conf/local.conf
echo KERNEL_VERSION_SANITY_SKIP=\"1\" >> conf/local.conf
echo IMAGE_FSTYPES += \" tar.bz2\" >> conf/local.conf
echo BB_NUMBER_THREADS ?= \"24\" >> conf/local.conf
echo PARALLEL_MAKE ?= \"-j 24\" >> conf/local.conf
bitbake wrlinux-image-ovp-kvm


$ cat /etc/dnf/dnf.conf
[main]
gpgcheck=0
installonly_limit=3
clean_requirements_on_remove=True
best=True


[preempt-rt_corei7_32]
name = preempt-rt_corei7_32
enabled = 1
baseurl = http://pek-lava.wrs.com:8080/source/OVP/2020-02-20/ovp-kvm_testing-master-wr_next/intel-x86-64/preempt-rt/corei7_32


[preempt-rt_corei7_64]
name = preempt-rt_corei7_64
enabled = 1
baseurl = http://pek-lava.wrs.com:8080/source/OVP/2020-02-20/ovp-kvm_testing-master-wr_next/intel-x86-64/preempt-rt/corei7_64


[preempt-rt_intel_x86_64]
name = preempt-rt_intel_x86_64
enabled = 1
baseurl = http://pek-lava.wrs.com:8080/source/OVP/2020-02-20/ovp-kvm_testing-master-wr_next/intel-x86-64/preempt-rt/intel_x86_64

----

/usr/bin/dnf repolist -y
/usr/bin/dnf check-update -y
Live chat
Online