Re: fedora-review broken?

2019-08-28 Thread J. Scheurich

> On Wed, Aug 28, 2019, 15:12 Richard Shaw  > wrote:
>
> While I'm trying to use it for a review on RPM Fusion I don't
> think the error is related...
>
> Just running fedora-review without any arguments produces this in
> the log:
>
> Traceback (most recent call last):
>   File
> "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py",
> line 236, in run
>     self._do_run(outfile)
>   File
> "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py",
> line 197, in _do_run
>     Settings.init()
>

I get similar errors when i try to use fedora-review under fedora31.
Amazingly fedora-review under fedora30 works without this problem.
This is the same fedora-review version, but maybe the problem is in the
used python scripts ?

so long
MUFTI
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: fedora-review broken?

2019-08-28 Thread Miro Hrončok

On 28. 08. 19 20:09, Robert-André Mauchin wrote:

On Wednesday, 28 August 2019 19:30:28 CEST Richard Shaw wrote:

On Wed, Aug 28, 2019 at 11:53 AM Bob Mauchin  wrote:

What's the mock config file you are using? From the error it seems it's
missing config_opts['root']


  I should have posted the full command anyway so here it is:

$ fedora-review --rpm-spec -n plex-media-player-2.40.0-2.fc29.src.rpm -m
fedora-30-x86_64-rpmfusion_free

Since I'm getting an error when I just run "fedora-review --help" I didn't
attribute it to the mock config... The RPM Fusion usually just extend on
the base Fedora config including the free and/or non-free repositories on
top of it.

Thanks,
Richard


Probably a FedoraReview bug, it reads the cfg file from fedora-30-x86_64-
rpmfusion_free.cfg to search for config_opts['root'], but doesn't resolve the
include.

It seems there is a bug opened already for this issue:
https://pagure.io/FedoraReview/issue/359
The bug was introduced by me to solve another one apparently.

Until this bug is solved, I'm joining my cfg file for RPMFusion to use with
FedoraReview. Use it with -m pathtocfgfile.cfg.



Indeed: https://pagure.io/FedoraReview/issue/359

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: fedora-review broken?

2019-08-28 Thread Robert-André Mauchin
On Wednesday, 28 August 2019 19:30:28 CEST Richard Shaw wrote:
> On Wed, Aug 28, 2019 at 11:53 AM Bob Mauchin  wrote:
> > What's the mock config file you are using? From the error it seems it's
> > missing config_opts['root']
> 
>  I should have posted the full command anyway so here it is:
> 
> $ fedora-review --rpm-spec -n plex-media-player-2.40.0-2.fc29.src.rpm -m
> fedora-30-x86_64-rpmfusion_free
> 
> Since I'm getting an error when I just run "fedora-review --help" I didn't
> attribute it to the mock config... The RPM Fusion usually just extend on
> the base Fedora config including the free and/or non-free repositories on
> top of it.
> 
> Thanks,
> Richard

Probably a FedoraReview bug, it reads the cfg file from fedora-30-x86_64-
rpmfusion_free.cfg to search for config_opts['root'], but doesn't resolve the 
include.

It seems there is a bug opened already for this issue:
https://pagure.io/FedoraReview/issue/359
The bug was introduced by me to solve another one apparently.

Until this bug is solved, I'm joining my cfg file for RPMFusion to use with 
FedoraReview. Use it with -m pathtocfgfile.cfg.

Best regards,

Robert-André# Auto-generated by the Koji build system

config_opts['chroothome'] = '/builddir'
config_opts['use_host_resolv'] = False
config_opts['basedir'] = '/var/lib/mock'
config_opts['rpmbuild_timeout'] = 86400
config_opts['chroot_setup_cmd'] = 'install @buildsys-build pigz lbzip2'
config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64',)
config_opts['root'] = 'f32-candidate-x86_64_rpmfusion'
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
config_opts['package_manager'] = 'dnf'
config_opts['use_bootstrap_container'] = False
config_opts['environment']['LANG'] = 'C.UTF-8'
config_opts['releasever'] = '32'
config_opts['rpmbuild_networking'] = True
config_opts['dynamic_buildrequires'] = True
config_opts['dynamic_buildrequires_max_loops'] = 10

config_opts['plugin_conf']['root_cache_enable'] = True
config_opts['plugin_conf']['yum_cache_enable'] = True
config_opts['plugin_conf']['ccache_enable'] = True

config_opts['macros']['%_host'] = 'x86_64-koji-linux-gnu'
config_opts['macros']['%_host_cpu'] = 'x86_64'
config_opts['macros']['%vendor'] = 'Koji'
config_opts['macros']['%distribution'] = 'fc32'
config_opts['macros']['%_topdir'] = '/builddir/build'
config_opts['macros']['%_rpmfilename'] = 
'%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'
config_opts['macros']['%packager'] = 'Koji'

config_opts['plugin_conf']['package_state_enable'] = False
config_opts['plugin_conf']['ccache_opts']['compress'] = True
config_opts['plugin_conf']['root_cache_opts']['compress_program'] = "pigz"
config_opts['macros']['%__gzip'] = '/usr/bin/pigz'
config_opts['macros']['%__bzip2'] = '/usr/bin/lbzip2'


config_opts['yum.conf'] = """
[main]
keepcache=1
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
install_weak_deps=0
metadata_timer_sync=8
metadata_expire=8
mdpolicy=group:primary
best=1
module_platform_id=platform:f32
fastestmirror=1
max_parallel_downloads=8

# repos

[fedora]
name=fedora
metalink=https://mirrors.fedoraproject.org/metalink?repo=rawhide=$basearch
gpgkey=file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-$releasever-primary
 file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-31-primary
gpgcheck=1
skip_if_unavailable=False

[local]
name=local
baseurl=https://kojipkgs.fedoraproject.org/repos/f32-build/latest/$basearch
skip_if_unavailable=False

[build-free]
name=build
baseurl=http://koji.rpmfusion.org/kojifiles/repos/f32-free-build/latest/$basearch

[build-nonfree]
name=build
baseurl=http://koji.rpmfusion.org/kojifiles/repos/f32-nonfree-build/latest/$basearch
"""

___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: fedora-review broken?

2019-08-28 Thread Richard Shaw
On Wed, Aug 28, 2019 at 11:53 AM Bob Mauchin  wrote:

>
>>
> What's the mock config file you are using? From the error it seems it's
> missing config_opts['root']
>

 I should have posted the full command anyway so here it is:

$ fedora-review --rpm-spec -n plex-media-player-2.40.0-2.fc29.src.rpm -m
fedora-30-x86_64-rpmfusion_free

Since I'm getting an error when I just run "fedora-review --help" I didn't
attribute it to the mock config... The RPM Fusion usually just extend on
the base Fedora config including the free and/or non-free repositories on
top of it.

Thanks,
Richard
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: fedora-review broken?

2019-08-28 Thread Bob Mauchin
On Wed, Aug 28, 2019, 15:12 Richard Shaw  wrote:

> While I'm trying to use it for a review on RPM Fusion I don't think the
> error is related...
>
> Just running fedora-review without any arguments produces this in the log:
>
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py",
> line 236, in run
> self._do_run(outfile)
>   File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py",
> line 197, in _do_run
> Settings.init()
>   File "/usr/lib/python3.7/site-packages/FedoraReview/settings.py", line
> 417, in init
> args = parser.parse_args()
>   File "/usr/lib64/python3.7/argparse.py", line 1749, in parse_args
> args, argv = self.parse_known_args(args, namespace)
>   File "/usr/lib64/python3.7/argparse.py", line 1781, in parse_known_args
> namespace, args = self._parse_known_args(args, namespace)
>   File "/usr/lib64/python3.7/argparse.py", line 1987, in _parse_known_args
> start_index = consume_optional(start_index)
>   File "/usr/lib64/python3.7/argparse.py", line 1927, in consume_optional
> take_action(action, args, option_string)
>   File "/usr/lib64/python3.7/argparse.py", line 1855, in take_action
> action(self, namespace, argument_values, option_string)
>   File "/usr/lib64/python3.7/argparse.py", line 1038, in __call__
> parser.exit()
>   File "/usr/lib64/python3.7/argparse.py", line 2488, in exit
> _sys.exit(status)
> SystemExit: 0
>
> When I try to do the review I get:
>
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py",
> line 236, in run
> self._do_run(outfile)
>   File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py",
> line 226, in _do_run
> self._do_report(outfile)
>   File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py",
> line 99, in _do_report
> self._run_checks(self.bug.spec_file, self.bug.srpm_file, outfile)
>   File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py",
> line 117, in _run_checks
> self.checks.run_checks(output=output, writedown=not Settings.no_report)
>   File "/usr/lib/python3.7/site-packages/FedoraReview/checks.py", line
> 382, in run_checks
> run_check(name)
>   File "/usr/lib/python3.7/site-packages/FedoraReview/checks.py", line
> 357, in run_check
> check.run()
>   File
> "/usr/lib/python3.7/site-packages/FedoraReview/plugins/generic_build.py",
> line 203, in run
> Mock.build(self.srpm.filename)
>   File "/usr/lib/python3.7/site-packages/FedoraReview/mock.py", line 457,
> in build
> self.builddir_cleanup()
>   File "/usr/lib/python3.7/site-packages/FedoraReview/mock.py", line 584,
> in builddir_cleanup
> paths = glob(os.path.join(self.get_builddir("BUILD"), "*"))
>   File "/usr/lib/python3.7/site-packages/FedoraReview/mock.py", line 360,
> in get_builddir
> p = self._get_dir(os.path.join("root", self._topdir[1:]))
>   File "/usr/lib/python3.7/site-packages/FedoraReview/mock.py", line 201,
> in _get_dir
> self._get_root()
>   File "/usr/lib/python3.7/site-packages/FedoraReview/mock.py", line 186,
> in _get_root
> config = compile(content[0], path, "exec")
> IndexError: list index out of range
>
> Thanks,
> Richard
> ___
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
>

>

What's the mock config file you are using? From the error it seems it's
missing config_opts['root']
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


fedora-review broken?

2019-08-28 Thread Richard Shaw
While I'm trying to use it for a review on RPM Fusion I don't think the
error is related...

Just running fedora-review without any arguments produces this in the log:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py",
line 236, in run
self._do_run(outfile)
  File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py",
line 197, in _do_run
Settings.init()
  File "/usr/lib/python3.7/site-packages/FedoraReview/settings.py", line
417, in init
args = parser.parse_args()
  File "/usr/lib64/python3.7/argparse.py", line 1749, in parse_args
args, argv = self.parse_known_args(args, namespace)
  File "/usr/lib64/python3.7/argparse.py", line 1781, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
  File "/usr/lib64/python3.7/argparse.py", line 1987, in _parse_known_args
start_index = consume_optional(start_index)
  File "/usr/lib64/python3.7/argparse.py", line 1927, in consume_optional
take_action(action, args, option_string)
  File "/usr/lib64/python3.7/argparse.py", line 1855, in take_action
action(self, namespace, argument_values, option_string)
  File "/usr/lib64/python3.7/argparse.py", line 1038, in __call__
parser.exit()
  File "/usr/lib64/python3.7/argparse.py", line 2488, in exit
_sys.exit(status)
SystemExit: 0

When I try to do the review I get:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py",
line 236, in run
self._do_run(outfile)
  File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py",
line 226, in _do_run
self._do_report(outfile)
  File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py",
line 99, in _do_report
self._run_checks(self.bug.spec_file, self.bug.srpm_file, outfile)
  File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py",
line 117, in _run_checks
self.checks.run_checks(output=output, writedown=not Settings.no_report)
  File "/usr/lib/python3.7/site-packages/FedoraReview/checks.py", line 382,
in run_checks
run_check(name)
  File "/usr/lib/python3.7/site-packages/FedoraReview/checks.py", line 357,
in run_check
check.run()
  File
"/usr/lib/python3.7/site-packages/FedoraReview/plugins/generic_build.py",
line 203, in run
Mock.build(self.srpm.filename)
  File "/usr/lib/python3.7/site-packages/FedoraReview/mock.py", line 457,
in build
self.builddir_cleanup()
  File "/usr/lib/python3.7/site-packages/FedoraReview/mock.py", line 584,
in builddir_cleanup
paths = glob(os.path.join(self.get_builddir("BUILD"), "*"))
  File "/usr/lib/python3.7/site-packages/FedoraReview/mock.py", line 360,
in get_builddir
p = self._get_dir(os.path.join("root", self._topdir[1:]))
  File "/usr/lib/python3.7/site-packages/FedoraReview/mock.py", line 201,
in _get_dir
self._get_root()
  File "/usr/lib/python3.7/site-packages/FedoraReview/mock.py", line 186,
in _get_root
config = compile(content[0], path, "exec")
IndexError: list index out of range

Thanks,
Richard
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: Fedora-review broken in F-21

2015-01-22 Thread Sérgio Basto
On Qui, 2015-01-22 at 13:31 -0700, Jerry James wrote: 
 I don't know for sure, but I suspect the new version of mock that was
 just pushed out in F-21 updates broke fedora-review.  At least,
 fedora-review is now broken, and I don't see any other recent updates
 that seem likely to be the cause of the problem.  Here's what happens
 when I try to use fedora-review now:
 
 $ fedora-review -b 1180698 -m fedora-rawhide-x86_64
 INFO: Processing bugzilla bug: 1180698
 INFO: Getting .spec and .srpm Urls from : 1180698
 INFO:   -- SRPM url:
 https://smani.fedorapeople.org/review/sflphone-1.4.1-1.fc22.src.rpm
 INFO:   -- Spec url: https://smani.fedorapeople.org/review/sflphone.spec
 INFO: Using review directory: /home/jamesjer/1180698-sflphone
 INFO: Downloading .spec and .srpm files
 RPM version 4.12.0.1
 Copyright (C) 1998-2002 - Red Hat, Inc.
 This program may be freely redistributed under the terms of the GNU GPL
 
 Usage: rpm [-afgpcdLlsiv?] [-a|--all] [-f|--file] [-g|--group]
 [-p|--package] [--pkgid] [--hdrid] [--triggeredby] [--whatrequires]
 [--whatprovides] [--nomanifest] [-c|--configfiles] [-d|--docfiles]
 [-L|--licensefiles] [--dump] [-l|--list] [--queryformat=QUERYFORMAT]
 [-s|--state] [--nofiledigest] [--nofiles] [--nodeps] [--noscript]
 [--allfiles] [--allmatches] [--badreloc] [-e|--erase=package+]
 [--excludedocs] [--excludepath=path] [--force]
 [-F|--freshen=packagefile+] [-h|--hash] [--ignorearch]
 [--ignoreos] [--ignoresize] [-i|--install] [--justdb] [--nodeps]
 [--nofiledigest] [--nocontexts] [--noorder] [--noscripts]
 [--notriggers] [--oldpackage] [--percent] [--prefix=dir]
 [--relocate=old=new] [--replacefiles] [--replacepkgs] [--test]
 [-U|--upgrade=packagefile+] [--reinstall=packagefile+]
 [-D|--define='MACRO EXPR'] [--undefine=MACRO] [-E|--eval='EXPR']
 [--macros=FILE:...] [--noplugins] [--nodigest] [--nosignature]
 [--rcfile=FILE:...] [-r|--root=ROOT] [--dbpath=DIRECTORY]
 [--querytags] [--showrc] [--quiet] [-v|--verbose] [--version]
 [-?|--help] [--usage] [--scripts] [--setperms] [--setugids]
 [--conflicts] [--obsoletes] [--provides] [--requires]
 [--recommends] [--suggests] [--supplements] [--enhances] [--info]
 [--changelog] [--xml] [--triggers] [--last] [--dupes]
 [--filesbypkg] [--fileclass] [--filecolor] [--fscontext]
 [--fileprovide] [--filerequire] [--filecaps]
 ERROR: Exception down the road...(logs in
 /home/jamesjer/.cache/fedora-review.log)
 
 The log file ends like this:
 
 01-22 10:52 root DEBUGUrl download completed: 11.092
 01-22 10:52 root DEBUGException down the road...
 Traceback (most recent call last):
   File /usr/lib/python2.7/site-packages/FedoraReview/review_helper.py,
 line 232, in run
 self._do_run(outfile)
   File /usr/lib/python2.7/site-packages/FedoraReview/review_helper.py,
 line 222, in _do_run
 self._do_report(outfile)
   File /usr/lib/python2.7/site-packages/FedoraReview/review_helper.py,
 line 96, in _do_report
 self._run_checks(self.bug.spec_file, self.bug.srpm_file, outfile)
   File /usr/lib/python2.7/site-packages/FedoraReview/review_helper.py,
 line 105, in _run_checks
 self.checks = Checks(spec, srpm)
   File /usr/lib/python2.7/site-packages/FedoraReview/checks.py, line
 271, in __init__
 self.spec = SpecFile(spec_file, self.flags)
   File /usr/lib/python2.7/site-packages/FedoraReview/spec_file.py,
 line 91, in __init__
 update_macros()
   File /usr/lib/python2.7/site-packages/FedoraReview/spec_file.py,
 line 65, in update_macros
 expanded = Mock.get_macro(macro, self, flags)
   File /usr/lib/python2.7/site-packages/FedoraReview/mock.py, line
 346, in get_macro
 self._macros = self._get_default_macros()
   File /usr/lib/python2.7/site-packages/FedoraReview/mock.py, line
 134, in _get_default_macros
 values = self._rpm_eval(tags).split()
   File /usr/lib/python2.7/site-packages/FedoraReview/mock.py, line
 259, in _rpm_eval
 return check_output(cmd).decode('utf-8').strip()
   File /usr/lib64/python2.7/subprocess.py, line 573, in check_output
 raise CalledProcessError(retcode, cmd, output=output)
 CalledProcessError: Command '['mock', '-r', 'fedora-rawhide-x86_64',
 '--no-cleanup-after', '--no-clean',
 '--resultdir=/home/jamesjer/1180698-sflphone/results', '--quiet',
 '--shell', 'rpm --eval \\%dist %fedora %epel %buildarch %_libdir
 %_isa %arch\\']' returned non-zero exit status 9
 01-22 10:52 root ERRORException down the road...(logs in
 /home/jamesjer/.cache/fedora-review.log)
 01-22 10:52 root DEBUGReport completed:  17.601 seconds
 
 And this patch fixes it:
 
 --- /usr/lib/python2.7/site-packages/FedoraReview/mock.py.orig
 2014-07-14 07:09:48.0 -0600
 +++ /usr/lib/python2.7/site-packages/FedoraReview/mock.py 2015-01-22
 13:19:40.532733703 -0700
 @@ -255,7 +255,7 @@
  def 

Fedora-review broken in F-21

2015-01-22 Thread Jerry James
I don't know for sure, but I suspect the new version of mock that was
just pushed out in F-21 updates broke fedora-review.  At least,
fedora-review is now broken, and I don't see any other recent updates
that seem likely to be the cause of the problem.  Here's what happens
when I try to use fedora-review now:

$ fedora-review -b 1180698 -m fedora-rawhide-x86_64
INFO: Processing bugzilla bug: 1180698
INFO: Getting .spec and .srpm Urls from : 1180698
INFO:   -- SRPM url:
https://smani.fedorapeople.org/review/sflphone-1.4.1-1.fc22.src.rpm
INFO:   -- Spec url: https://smani.fedorapeople.org/review/sflphone.spec
INFO: Using review directory: /home/jamesjer/1180698-sflphone
INFO: Downloading .spec and .srpm files
RPM version 4.12.0.1
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL

Usage: rpm [-afgpcdLlsiv?] [-a|--all] [-f|--file] [-g|--group]
[-p|--package] [--pkgid] [--hdrid] [--triggeredby] [--whatrequires]
[--whatprovides] [--nomanifest] [-c|--configfiles] [-d|--docfiles]
[-L|--licensefiles] [--dump] [-l|--list] [--queryformat=QUERYFORMAT]
[-s|--state] [--nofiledigest] [--nofiles] [--nodeps] [--noscript]
[--allfiles] [--allmatches] [--badreloc] [-e|--erase=package+]
[--excludedocs] [--excludepath=path] [--force]
[-F|--freshen=packagefile+] [-h|--hash] [--ignorearch]
[--ignoreos] [--ignoresize] [-i|--install] [--justdb] [--nodeps]
[--nofiledigest] [--nocontexts] [--noorder] [--noscripts]
[--notriggers] [--oldpackage] [--percent] [--prefix=dir]
[--relocate=old=new] [--replacefiles] [--replacepkgs] [--test]
[-U|--upgrade=packagefile+] [--reinstall=packagefile+]
[-D|--define='MACRO EXPR'] [--undefine=MACRO] [-E|--eval='EXPR']
[--macros=FILE:...] [--noplugins] [--nodigest] [--nosignature]
[--rcfile=FILE:...] [-r|--root=ROOT] [--dbpath=DIRECTORY]
[--querytags] [--showrc] [--quiet] [-v|--verbose] [--version]
[-?|--help] [--usage] [--scripts] [--setperms] [--setugids]
[--conflicts] [--obsoletes] [--provides] [--requires]
[--recommends] [--suggests] [--supplements] [--enhances] [--info]
[--changelog] [--xml] [--triggers] [--last] [--dupes]
[--filesbypkg] [--fileclass] [--filecolor] [--fscontext]
[--fileprovide] [--filerequire] [--filecaps]
ERROR: Exception down the road...(logs in
/home/jamesjer/.cache/fedora-review.log)

The log file ends like this:

01-22 10:52 root DEBUGUrl download completed: 11.092
01-22 10:52 root DEBUGException down the road...
Traceback (most recent call last):
  File /usr/lib/python2.7/site-packages/FedoraReview/review_helper.py,
line 232, in run
self._do_run(outfile)
  File /usr/lib/python2.7/site-packages/FedoraReview/review_helper.py,
line 222, in _do_run
self._do_report(outfile)
  File /usr/lib/python2.7/site-packages/FedoraReview/review_helper.py,
line 96, in _do_report
self._run_checks(self.bug.spec_file, self.bug.srpm_file, outfile)
  File /usr/lib/python2.7/site-packages/FedoraReview/review_helper.py,
line 105, in _run_checks
self.checks = Checks(spec, srpm)
  File /usr/lib/python2.7/site-packages/FedoraReview/checks.py, line
271, in __init__
self.spec = SpecFile(spec_file, self.flags)
  File /usr/lib/python2.7/site-packages/FedoraReview/spec_file.py,
line 91, in __init__
update_macros()
  File /usr/lib/python2.7/site-packages/FedoraReview/spec_file.py,
line 65, in update_macros
expanded = Mock.get_macro(macro, self, flags)
  File /usr/lib/python2.7/site-packages/FedoraReview/mock.py, line
346, in get_macro
self._macros = self._get_default_macros()
  File /usr/lib/python2.7/site-packages/FedoraReview/mock.py, line
134, in _get_default_macros
values = self._rpm_eval(tags).split()
  File /usr/lib/python2.7/site-packages/FedoraReview/mock.py, line
259, in _rpm_eval
return check_output(cmd).decode('utf-8').strip()
  File /usr/lib64/python2.7/subprocess.py, line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['mock', '-r', 'fedora-rawhide-x86_64',
'--no-cleanup-after', '--no-clean',
'--resultdir=/home/jamesjer/1180698-sflphone/results', '--quiet',
'--shell', 'rpm --eval \\%dist %fedora %epel %buildarch %_libdir
%_isa %arch\\']' returned non-zero exit status 9
01-22 10:52 root ERRORException down the road...(logs in
/home/jamesjer/.cache/fedora-review.log)
01-22 10:52 root DEBUGReport completed:  17.601 seconds

And this patch fixes it:

--- /usr/lib/python2.7/site-packages/FedoraReview/mock.py.orig
2014-07-14 07:09:48.0 -0600
+++ /usr/lib/python2.7/site-packages/FedoraReview/mock.py 2015-01-22
13:19:40.532733703 -0700
@@ -255,7 +255,7 @@
 def _rpm_eval(self, arg):
 ''' Run rpm --eval arg inside mock, return output. '''
 cmd = self._mock_cmd()
-cmd.extend(['--quiet',