On Tue, Dec 16, 2008 at 12:27:04PM -0400, Devan Goodwin wrote:
> I think the build.py script for building spacewalk packages is ready
> for some wider testing. At this point the functionality should be
> roughly equivalent to the Makefile.git. If you're looking to build
> spacewalk packages the script is located in rel-eng/bin/build.py. 
> 
> To use it just cd to the project you want to build and call the script
> via full path, or add it to your PATH variable and make your life
> easier.
> 
> cd java/
> build.py --srpm

I tried this and I got

$ build.py --srpm
bash: build.py: command not found

So I tried to specify full path to rel-eng/bin dir and I got

$ ../rel-eng/bin/build.py --srpm
Traceback (most recent call last):
  File "../rel-eng/bin/build.py", line 26, in <module>
    CLI().main()
  File "rel-eng/bin/../lib/spacewalk/releng/cli.py", line 130, in main
  File "rel-eng/bin/../lib/spacewalk/releng/builder.py", line 43, in __init__
  File "rel-eng/bin/../lib/spacewalk/releng/common.py", line 37, in read_config
Exception: Error parsing ~/.spacewalk-build-rc: 

> Also if you'd prefer to have your packages built somewhere *other* than
> the current working directory (which is very useful) Jan's setup for
> configuring this still works:
> 
> (dgood...@elaine)[~/src/spacewalk] % cat ~/.spacewalk-build-rc 
> RPMBUILD_BASEDIR = /tmp/spacewalk-build

It looks like build.py fails for .spacewalk-build-r which has empty
lines in it as mine is

$ cat ~/.spacewalk-build-rc

RPMBUILD_BASEDIR = /tmp/spacewalk-build

$

and if I remove the empty lines, I get
Building version: 0.4.7
[...]

Could you please support empty lines and comments in the rc file?

-- 
Jan Pazdziora
Satellite Engineering, Red Hat

_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to