Skip to content

Commit

Permalink
Merge pull request #197 from cms-sw/fix-ref-provides
Browse files Browse the repository at this point in the history
Fix package provides when --reference opt is eneabled
  • Loading branch information
smuzaffar authored Jun 19, 2023
2 parents 4965ae3 + 02981a2 commit c7b541f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmsBuild
Original file line number Diff line number Diff line change
Expand Up @@ -3634,8 +3634,8 @@ def savePackageProvides(pkg_name, options, rpm_pkg=None, rpm_cmd=None, read=Fals
if rpm_pkg:
opt += " -p"
pkg2search = rpm_pkg
rpm_env = rpm_cmd if rpm_cmd else rpmEnvironmentScript
cmd = "%(rpm_env)s ; rpm %(opt)s %(pkg2search)s > %(provides_cache)s" % locals()
rpm_env = "%s env -- " % rpm_cmd if rpm_cmd else "%s ; " % rpmEnvironmentScript
cmd = "%(rpm_env)s rpm %(opt)s %(pkg2search)s > %(provides_cache)s" % locals()
getstatusoutput(cmd)
if read:
e, o = getstatusoutput("cat %s" % provides_cache)
Expand Down

0 comments on commit c7b541f

Please sign in to comment.