#3355 call git rev-parse before chowning source directory
Merged 2 years ago by tkopecek. Opened 2 years ago by tkopecek.
tkopecek/koji issue3351  into  master

file modified
+2 -1
@@ -5072,6 +5072,8 @@ 

                             scratch=opts.get('scratch'),

                             srcdir=sourcedir,

                             buildroot=broot)

+         # get the source before chown, git > 2.35.2 would refuse to that later

+         source = scm.get_source()

          # chown the sourcedir and everything under it to the mockuser

          # so we can build the srpm as non-root

          uid = pwd.getpwnam(self.options.mockuser)[2]
@@ -5143,7 +5145,6 @@ 

          brootid = broot.id

          log_files = glob.glob('%s/*.log' % broot.resultdir())

  

-         source = scm.get_source()

          broot.expire()

  

          return {'srpm': "%s/%s" % (uploadpath, srpm_name),

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

2 years ago

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

2 years ago

Commit 904ab88 fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago
Metadata