From c01e6c3b5b0b36ce1881316ca8c24f427eea72d0 Mon Sep 17 00:00:00 2001 From: hyokeun Date: Tue, 14 Mar 2017 14:03:19 +0900 Subject: [PATCH] FIX: manifest generation errors when no rpms exists Change-Id: I57c199b4475f85473aa14c5643f51121faade809 --- common/manifest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/manifest.py b/common/manifest.py index a2fdc69..d72ea79 100644 --- a/common/manifest.py +++ b/common/manifest.py @@ -55,6 +55,9 @@ def get_package_vcs_tag(primary_md): primary = xml_to_obj(xml_file) + if not primary.package: + return ret_data + for package in primary.package: vcs_tag = package.version.vcs if vcs_tag: -- 2.7.4