X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Frpmbuilder.git;a=blobdiff_plain;f=rpmbuilder%2Frpmtools.py;h=ef1c9c7770e52ee3c39d0043eb30662a8a4e22c1;hp=a9ab625e7b91763f3a84fd63d21d19cff5c6deac;hb=HEAD;hpb=876631a959303430aafc0be7897b086ee9b921fe diff --git a/rpmbuilder/rpmtools.py b/rpmbuilder/rpmtools.py index a9ab625..ef1c9c7 100644 --- a/rpmbuilder/rpmtools.py +++ b/rpmbuilder/rpmtools.py @@ -128,10 +128,10 @@ class Specworker(object): 'Failed to parse %global macro "{}" (error: {})'.format(linestripped, str(err))) - elif linestripped.lower().startswith("buildrequires:"): + elif linestripped.lower().startswith("buildrequires:") and "only_builddep_resolve" not in self.spec_globals: self.buildrequires.extend(self.__get_value_from_line(linestripped)) - elif linestripped.lower().startswith("requires:"): + elif linestripped.lower().startswith("requires:") and "only_builddep_resolve" not in self.spec_globals: self.requires.extend(self.__get_value_from_line(linestripped)) elif linestripped.lower().startswith("release:"):