summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Gnatenko <ignatenko@redhat.com>2016-08-22 12:55:50 +0200
committerIgor Gnatenko <ignatenko@redhat.com>2016-08-22 15:04:42 +0200
commit2f51022e1586a9b3ac8036b23995074b00910475 (patch)
treec7bc54fd37e05a3a95c875d51d9f783ac633715e
parent49197c930bb6090d0fca4089ea75ec9d10e62f99 (diff)
downloadrpm-2f51022e1586a9b3ac8036b23995074b00910475.tar.gz
pythondistdeps.py: show warning if version is not found in metadata
In 49197c930bb6090d0fca4089ea75ec9d10e62f99 we introduced skipping metadata which has no version, but it's better to show some warning. Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
-rwxr-xr-xscripts/pythondistdeps.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/pythondistdeps.py b/scripts/pythondistdeps.py
index 54905c369..d7226e055 100755
--- a/scripts/pythondistdeps.py
+++ b/scripts/pythondistdeps.py
@@ -110,6 +110,7 @@ for f in files:
dist = Distribution.from_location(path_item, dist_name, metadata)
# Check if py_version is defined in the file
if not dist.py_version:
+ warnings.warn("Version for {!r} has not been found".format(dist), RuntimeWarning)
continue
if (Provides_PyMajorVer_Variant or legacy_Provides or legacy) and Provides:
# Get the Python major version