#155 Give hint to scratch-build when build from local changes
Merged 6 years ago by cqi. Opened 6 years ago by cqi.

file modified
+7 -1
@@ -1865,7 +1865,13 @@ 

              # We don't have a url, so build from the latest commit

              # Check to see if the tree is dirty and if all local commits

              # are pushed

-             self.check_repo()

+             try:

+                 self.check_repo()

+             except rpkgError as e:

+                 msg = '{0}\n{1}'.format(

+                     str(e),

+                     'Try option --srpm to make scratch build from local changes.')

+                 raise rpkgError(msg)

              url = self._get_namespace_anongiturl(self.ns_module_name) + \

                  '?#%s' % self.commithash

          # Check to see if the target is valid

Resolves: BZ#841516

Signed-off-by: Chenxiong Qi cqi@redhat.com

rebased

6 years ago

Looks good to me. This should make it clear to users how they can get around the error.

rebased

6 years ago

Pull-Request has been merged by cqi

6 years ago
Metadata