[Spacewalk-devel] [PATCH] - 784158 - spacewalk-service does not offer a way to disable some services

2012-01-23 Thread Marcelo Moreira de Mello
Hello team, Here follow 3 patches which includes a capability to Spacewalk ignore to start some services when running the /usr/sbin/spacewalk-service script. Below is an example after applied the patch excluding the Taskomatic service to be started: # cat /etc/rhn/disabled-services DIS

Re: [Spacewalk-devel] API functions eat trailing whitespace (Redstone XML-RPC issue)

2012-01-23 Thread Parsons, Aron
Patches are committed. It looks like Tomas added the functionality you need to export base64 files, so feel free to submit patches to add that functionality when you have time. /aron From: Steven Hardy [sha...@redhat.com] Sent: Monday, January 23, 2012 8

Re: [Spacewalk-devel] API functions eat trailing whitespace (Redstone XML-RPC issue)

2012-01-23 Thread Tomas Lestach
On Monday 16 of January 2012 02:19:39 Parsons, Aron wrote: > I was making use of configchannel_import in spacecmd at work last week and > noticed that the API seems to eat newlines at the end of a file; what you > put in is not what you get out. I've introduced configchannel.getEncodedFileRevisi

Re: [Spacewalk-devel] API functions eat trailing whitespace (Redstone XML-RPC issue)

2012-01-23 Thread Steven Hardy
Hi Aron, On Mon, 2012-01-16 at 02:19 +, Parsons, Aron wrote: > I was making use of configchannel_import in spacecmd at work last week and > noticed that the API seems to eat newlines at the end of a file; what you put > in is not what you get out. Some applications handle it fine, others n

[Spacewalk-devel] [PATCH 8/8] spacecmd bugfix: configchannel_addfile fail nicely when no channel arg

2012-01-23 Thread Steven Hardy
If no channel arg passed avoid failing with an api error, instead exit with an error message --- spacecmd/src/lib/configchannel.py |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/spacecmd/src/lib/configchannel.py b/spacecmd/src/lib/configchannel.py index 884a138..deb01

[Spacewalk-devel] [PATCH 7/8] spacecmd enhancement: Align configchannel_addfile usage

2012-01-23 Thread Steven Hardy
Interactive mode takes a configchannel without -c switch, so allow this format to be valid also for non-interactive mode (similar to other commands), original -c syntax is unchanged. --- spacecmd/src/lib/configchannel.py |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a

[Spacewalk-devel] [PATCH 6/8] spacecmd enhancement: Add softwarechannel_listlatestpackages command

2012-01-23 Thread Steven Hardy
Lists only the latest version of a package in a channel, for each arch --- spacecmd/src/lib/softwarechannel.py | 56 +++ spacecmd/src/lib/utils.py | 17 ++ 2 files changed, 73 insertions(+), 0 deletions(-) diff --git a/spacecmd/src/lib/softwar

[Spacewalk-devel] [PATCH 5/8] spacecmd bugfix: configchannel_import detect trailing newlines

2012-01-23 Thread Steven Hardy
Detect trailing newlines on import and base64 encode to avoid them getting eaten by the API --- spacecmd/src/lib/configchannel.py | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/spacecmd/src/lib/configchannel.py b/spacecmd/src/lib/configchannel.py index 9740b06

[Spacewalk-devel] [PATCH 2/8] spacecmd enhancement : configchannel_addfile automatically detect trailing newlines

2012-01-23 Thread Steven Hardy
Automatically detect when a file needs to be uploaded base64 encoded --- spacecmd/src/lib/configchannel.py | 25 - 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/spacecmd/src/lib/configchannel.py b/spacecmd/src/lib/configchannel.py index 0391490..af8ae0d

[Spacewalk-devel] [PATCH 1/8] spacecmd enhancement : make configchannel_addfile handle binary files

2012-01-23 Thread Steven Hardy
Allow configchannel_addfile to base64 encode content so binary files (or text files which prove problematic to upload via the API) can be uploaded --- spacecmd/src/lib/configchannel.py | 21 +++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/spacecmd/src/lib/co

[Spacewalk-devel] [PATCH 4/8] spacecmd bugfix: configchannel_import flag error when binary file can't be imported

2012-01-23 Thread Steven Hardy
We should flag an error when binary (or other problematic files such as those containing the ascii escape character) don't get exported with any contents, therefore can't be imported. --- spacecmd/src/lib/configchannel.py | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-)

[Spacewalk-devel] [PATCH 3/8] spacecmd bugfix: system_runscript fix type when passing timeout argument

2012-01-23 Thread Steven Hardy
passing timeout via -t causes an error as it needs to be int type as in interactive mode --- spacecmd/src/lib/system.py |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/spacecmd/src/lib/system.py b/spacecmd/src/lib/system.py index 7080c4a..8238324 100644 --- a/spacecmd/