Changes to 'refs/tags/yum-rhn-plugin-1.6.6-1'
by Miroslav Suchý
Tag 'yum-rhn-plugin-1.6.6-1' created by Miroslav Suchý <msuchy(a)redhat.com> at 2011-08-04 15:12 +0000
Tagging package [yum-rhn-plugin] version [1.6.6-1] in directory [client/rhel/yum-rhn-plugin/].
Changes since spacewalk-java-1.6.11-1:
Miroslav Suchý (1):
Automatic commit of package [yum-rhn-plugin] release [1.6.6-1].
---
client/rhel/yum-rhn-plugin/yum-rhn-plugin.spec | 5 ++++-
rel-eng/packages/yum-rhn-plugin | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
---
12 years, 9 months
client/rhel rel-eng/packages
by Miroslav Suchý
client/rhel/yum-rhn-plugin/yum-rhn-plugin.spec | 5 ++++-
rel-eng/packages/yum-rhn-plugin | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
New commits:
commit a6c466ea85beec294806827d1022ab168feb7af1
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Thu Aug 4 17:12:47 2011 +0200
Automatic commit of package [yum-rhn-plugin] release [1.6.6-1].
diff --git a/client/rhel/yum-rhn-plugin/yum-rhn-plugin.spec b/client/rhel/yum-rhn-plugin/yum-rhn-plugin.spec
index c3324bc..c4c3eae 100644
--- a/client/rhel/yum-rhn-plugin/yum-rhn-plugin.spec
+++ b/client/rhel/yum-rhn-plugin/yum-rhn-plugin.spec
@@ -1,6 +1,6 @@
Summary: RHN support for yum
Name: yum-rhn-plugin
-Version: 1.6.5
+Version: 1.6.6
Release: 1%{?dist}
License: GPLv2
Group: System Environment/Base
@@ -72,6 +72,9 @@ fi
%doc LICENSE
%changelog
+* Thu Aug 04 2011 Miroslav Suchý 1.6.6-1
+- 690616 - fail to rollback if target package is not available
+
* Thu Aug 04 2011 Michael Mraka <michael.mraka(a)redhat.com> 1.6.5-1
- the latest yum-rhn-plugin and rhn-client-tools require each other
diff --git a/rel-eng/packages/yum-rhn-plugin b/rel-eng/packages/yum-rhn-plugin
index 4c64d51..d910ea0 100644
--- a/rel-eng/packages/yum-rhn-plugin
+++ b/rel-eng/packages/yum-rhn-plugin
@@ -1 +1 @@
-1.6.5-1 client/rhel/yum-rhn-plugin/
+1.6.6-1 client/rhel/yum-rhn-plugin/
12 years, 9 months
Changes to 'refs/tags/spacewalk-java-1.6.11-1'
by Jan Pazdziora
Tag 'spacewalk-java-1.6.11-1' created by Jan Pazdziora <jpazdziora(a)redhat.com> at 2011-08-04 14:37 +0000
Tagging package [spacewalk-java] version [1.6.11-1] in directory [java/].
Changes since rhncfg-5.10.11-1:
Jan Pazdziora (1):
Automatic commit of package [spacewalk-java] release [1.6.11-1].
---
java/spacewalk-java.spec | 8 +++++++-
rel-eng/packages/spacewalk-java | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
---
12 years, 9 months
java/spacewalk-java.spec rel-eng/packages
by Jan Pazdziora
java/spacewalk-java.spec | 8 +++++++-
rel-eng/packages/spacewalk-java | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
New commits:
commit 1362dd854a1a0d0cb8f80b56bf1ae95f51d8df7e
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Thu Aug 4 16:37:48 2011 +0200
Automatic commit of package [spacewalk-java] release [1.6.11-1].
diff --git a/java/spacewalk-java.spec b/java/spacewalk-java.spec
index ed66613..51d2f32 100644
--- a/java/spacewalk-java.spec
+++ b/java/spacewalk-java.spec
@@ -17,7 +17,7 @@ Name: spacewalk-java
Summary: Spacewalk Java site packages
Group: Applications/Internet
License: GPLv2
-Version: 1.6.10
+Version: 1.6.11
Release: 1%{?dist}
URL: https://fedorahosted.org/spacewalk
Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
@@ -546,6 +546,12 @@ fi
%{jardir}/postgresql-jdbc.jar
%changelog
+* Thu Aug 04 2011 Jan Pazdziora 1.6.11-1
+- 508936 - rhn-actions-control honor the allowed-actions/scripts/run for remote
+ commands (mmello(a)redhat.com)
+- 679846 - regenerate kickstart file after modifying kickstart scripts
+ (mosvald(a)redhat.com)
+
* Wed Aug 03 2011 Tomas Lestach <tlestach(a)redhat.com> 1.6.10-1
- adding @param tag (tlestach(a)redhat.com)
diff --git a/rel-eng/packages/spacewalk-java b/rel-eng/packages/spacewalk-java
index f06920f..701b7d6 100644
--- a/rel-eng/packages/spacewalk-java
+++ b/rel-eng/packages/spacewalk-java
@@ -1 +1 @@
-1.6.10-1 java/
+1.6.11-1 java/
12 years, 9 months
Changes to 'refs/tags/rhncfg-5.10.11-1'
by Jan Pazdziora
Tag 'rhncfg-5.10.11-1' created by Jan Pazdziora <jpazdziora(a)redhat.com> at 2011-08-04 14:37 +0000
Tagging package [rhncfg] version [5.10.11-1] in directory [client/tools/rhncfg/].
Changes since yum-rhn-plugin-1.6.5-1:
Jan Pazdziora (1):
Automatic commit of package [rhncfg] release [5.10.11-1].
Marcelo Moreira de Mello (1):
508936 - rhn-actions-control honor the allowed-actions/scripts/run for remote commands
Miroslav Suchý (1):
690616 - fail to rollback if target package is not available
---
client/rhel/yum-rhn-plugin/actions/packages.py | 5 ++++
client/tools/rhncfg/actions/ModeController.py | 3 ++
client/tools/rhncfg/actions/ModeControllerCreator.py | 4 +--
client/tools/rhncfg/actions/Modes.py | 12 ++++++++++
client/tools/rhncfg/actions/configfiles.py | 3 ++
client/tools/rhncfg/actions/rhn-actions-control.py | 6 +++++
client/tools/rhncfg/rhncfg.spec | 6 ++++-
java/code/src/com/redhat/rhn/manager/kickstart/KickstartFormatter.java | 2 -
rel-eng/packages/rhncfg | 2 -
9 files changed, 38 insertions(+), 5 deletions(-)
---
12 years, 9 months
client/tools rel-eng/packages
by Jan Pazdziora
client/tools/rhncfg/rhncfg.spec | 6 +++++-
rel-eng/packages/rhncfg | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
New commits:
commit b9851c077dc1c430221d1b5c8644356b96a71d62
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Thu Aug 4 16:37:25 2011 +0200
Automatic commit of package [rhncfg] release [5.10.11-1].
diff --git a/client/tools/rhncfg/rhncfg.spec b/client/tools/rhncfg/rhncfg.spec
index 31c942d..01092cd 100644
--- a/client/tools/rhncfg/rhncfg.spec
+++ b/client/tools/rhncfg/rhncfg.spec
@@ -8,7 +8,7 @@ Group: Applications/System
License: GPLv2 and Python
URL: https://fedorahosted.org/spacewalk
Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
-Version: 5.10.10
+Version: 5.10.11
Release: 1%{?dist}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -106,6 +106,10 @@ rm -rf $RPM_BUILD_ROOT
# $Id$
%changelog
+* Thu Aug 04 2011 Jan Pazdziora 5.10.11-1
+- 508936 - rhn-actions-control honor the allowed-actions/scripts/run for remote
+ commands (mmello(a)redhat.com)
+
* Mon Aug 01 2011 Miroslav Suchý 5.10.10-1
- get server_name from config only if it was not set on command line
- remove rhn_rpc.py
diff --git a/rel-eng/packages/rhncfg b/rel-eng/packages/rhncfg
index 00ba391..b273710 100644
--- a/rel-eng/packages/rhncfg
+++ b/rel-eng/packages/rhncfg
@@ -1 +1 @@
-5.10.10-1 client/tools/rhncfg/
+5.10.11-1 client/tools/rhncfg/
12 years, 9 months
client/tools java/code
by Jan Pazdziora
client/tools/rhncfg/actions/ModeController.py | 3 ++
client/tools/rhncfg/actions/ModeControllerCreator.py | 4 +--
client/tools/rhncfg/actions/Modes.py | 12 ++++++++++
client/tools/rhncfg/actions/configfiles.py | 3 ++
client/tools/rhncfg/actions/rhn-actions-control.py | 6 +++++
java/code/src/com/redhat/rhn/manager/kickstart/KickstartFormatter.java | 2 -
6 files changed, 27 insertions(+), 3 deletions(-)
New commits:
commit d8740eee2c2a60ac385ea2e1d2c26a3c063d14b6
Author: Marcelo Moreira de Mello <mmello(a)redhat.com>
Date: Thu Jul 21 17:09:36 2011 -0300
508936 - rhn-actions-control honor the allowed-actions/scripts/run for remote commands
diff --git a/client/tools/rhncfg/actions/ModeController.py b/client/tools/rhncfg/actions/ModeController.py
index 9de0b41..1548175 100644
--- a/client/tools/rhncfg/actions/ModeController.py
+++ b/client/tools/rhncfg/actions/ModeController.py
@@ -47,6 +47,9 @@ class ModeController:
for m in self.mode_list.keys():
self.mode_list[m].on()
+ if self.mode_list['all'].is_on():
+ self.mode_list['all'].off()
+
#Turn off all of the modes.
def all_off(self):
for m in self.mode_list.keys():
diff --git a/client/tools/rhncfg/actions/ModeControllerCreator.py b/client/tools/rhncfg/actions/ModeControllerCreator.py
index 75dc860..ae7822a 100644
--- a/client/tools/rhncfg/actions/ModeControllerCreator.py
+++ b/client/tools/rhncfg/actions/ModeControllerCreator.py
@@ -56,9 +56,9 @@ def get_controller_creator():
def get_run_controller_creator():
if string.find(sys.platform, 'sunos') > -1:
- mode_list = [Modes.SolarisRunMode()]
+ mode_list = [Modes.SolarisRunMode(), Modes.SolarisRunAllMode()]
else:
- mode_list = [Modes.RunMode()]
+ mode_list = [Modes.RunMode(), Modes.RunAllMode()]
controller = ModeControllerCreator(mode_list=mode_list)
return controller
diff --git a/client/tools/rhncfg/actions/Modes.py b/client/tools/rhncfg/actions/Modes.py
index 3523a57..fefeda74 100644
--- a/client/tools/rhncfg/actions/Modes.py
+++ b/client/tools/rhncfg/actions/Modes.py
@@ -119,6 +119,12 @@ class RunMode(ConfigFilesBaseMode):
self.name = "run"
self.ph.set_rhn_root("/etc/sysconfig/rhn/allowed-actions/script")
+class RunAllMode(ConfigFilesBaseMode):
+ def __init__(self):
+ ConfigFilesBaseMode.__init__(self)
+ self.name = "all"
+ self.ph.set_rhn_root("/etc/sysconfig/rhn/allowed-actions/script")
+
class AllMode(ConfigFilesBaseMode):
def __init__(self):
ConfigFilesBaseMode.__init__(self)
@@ -151,6 +157,12 @@ class SolarisRunMode(ConfigFilesBaseMode):
self.name = "run"
self.ph.set_rhn_root("/opt/redhat/rhn/solaris/etc/sysconfig/rhn/allowed-actions/script")
+class SolarisAllRunMode(ConfigFilesBaseMode):
+ def __init__(self):
+ ConfigFilesBaseMode.__init__(self)
+ self.name = "all"
+ self.ph.set_rhn_root("/opt/redhat/rhn/solaris/etc/sysconfig/rhn/allowed-actions/script")
+
class SolarisAllMode(ConfigFilesBaseMode):
def __init__(self):
ConfigFilesBaseMode.__init__(self)
diff --git a/client/tools/rhncfg/actions/configfiles.py b/client/tools/rhncfg/actions/configfiles.py
index 76671ab..0b0d6c0 100755
--- a/client/tools/rhncfg/actions/configfiles.py
+++ b/client/tools/rhncfg/actions/configfiles.py
@@ -53,6 +53,9 @@ def _local_permission_check(action_type):
all_structure = atype_structure[:i]
all_structure.append('all')
+ if os.path.exists(os.path.join(_permission_root_dir, "script/all")) and action_type == "script.run":
+ os.rename(os.path.join(_permission_root_dir, "script/all"),os.path.join(_permission_root_dir, "script/run"))
+
potential_all_path = apply(os.path.join, all_structure)
if os.path.exists(os.path.join(_permission_root_dir, potential_all_path)):
return 1
diff --git a/client/tools/rhncfg/actions/rhn-actions-control.py b/client/tools/rhncfg/actions/rhn-actions-control.py
index d295ea5..8c83918 100755
--- a/client/tools/rhncfg/actions/rhn-actions-control.py
+++ b/client/tools/rhncfg/actions/rhn-actions-control.py
@@ -66,6 +66,7 @@ def main():
if options.enable_run:
runcontroller.on('run')
+ runcontroller.off('all')
if options.disable_deploy:
controller.off('deploy')
@@ -85,6 +86,7 @@ def main():
if options.disable_run:
runcontroller.off('run')
+ runcontroller.off('all')
if options.report:
mode_list = ['deploy', 'diff', 'upload', 'mtime_upload']
@@ -97,6 +99,10 @@ def main():
print rstring % (m, status)
status = "disabled"
+ if runcontroller.is_on('all'):
+ runcontroller.off('all')
+ runcontroller.on('run')
+
if runcontroller.is_on('run'):
status = "enabled"
print rstring % ('run', status)
diff --git a/java/code/src/com/redhat/rhn/manager/kickstart/KickstartFormatter.java b/java/code/src/com/redhat/rhn/manager/kickstart/KickstartFormatter.java
index 8d96873..4dcc559 100644
--- a/java/code/src/com/redhat/rhn/manager/kickstart/KickstartFormatter.java
+++ b/java/code/src/com/redhat/rhn/manager/kickstart/KickstartFormatter.java
@@ -120,7 +120,7 @@ public class KickstartFormatter {
private static final String WGET_RPMS = "wget -P /tmp/rhn_rpms ";
private static final String REMOTE_CMD =
"mkdir -p /etc/sysconfig/rhn/allowed-actions/script" + NEWLINE +
- "touch /etc/sysconfig/rhn/allowed-actions/script/all";
+ "touch /etc/sysconfig/rhn/allowed-actions/script/run";
private static final String CONFIG_CMD =
"mkdir -p /etc/sysconfig/rhn/allowed-actions/configfiles" + NEWLINE +
"touch /etc/sysconfig/rhn/allowed-actions/configfiles/all";
12 years, 9 months
client/rhel
by Miroslav Suchý
client/rhel/yum-rhn-plugin/actions/packages.py | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 32b633cda7cbeedc120478f2681255fdeb6e0200
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Aug 2 14:38:04 2011 +0200
690616 - fail to rollback if target package is not available
diff --git a/client/rhel/yum-rhn-plugin/actions/packages.py b/client/rhel/yum-rhn-plugin/actions/packages.py
index fd539cf..de1c3a6 100644
--- a/client/rhel/yum-rhn-plugin/actions/packages.py
+++ b/client/rhel/yum-rhn-plugin/actions/packages.py
@@ -253,6 +253,11 @@ class YumAction(yum.YumBase):
pkgs = self.pkgSack.searchNevra(name=pkgkeys['name'],
epoch=pkgkeys['epoch'], arch=pkgkeys['arch'],
ver=pkgkeys['version'], rel=pkgkeys['release'])
+ if not pkgs:
+ raise yum.Errors.YumBaseError, \
+ "Cannot find package %s:%s-%s-%s.%s in any of enabled repositories." \
+ % (pkgkeys['epoch'], pkgkeys['name'], pkgkeys['version'],
+ pkgkeys['release'], pkgkeys['arch'])
for po in pkgs:
self.tsInfo.addInstall(po)
elif action == 'e':
12 years, 9 months
Changes to 'refs/tags/yum-rhn-plugin-1.6.5-1'
by Michael Mraka
Tag 'yum-rhn-plugin-1.6.5-1' created by Michael Mraka <michael.mraka(a)redhat.com> at 2011-08-04 12:47 +0000
Tagging package [yum-rhn-plugin] version [1.6.5-1] in directory [client/rhel/yum-rhn-plugin/].
Changes since rhn-client-tools-1.6.7-1:
Michael Mraka (1):
Automatic commit of package [yum-rhn-plugin] release [1.6.5-1].
---
client/rhel/yum-rhn-plugin/yum-rhn-plugin.spec | 5 ++++-
rel-eng/packages/yum-rhn-plugin | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
---
12 years, 9 months
Changes to 'refs/tags/rhn-client-tools-1.6.7-1'
by Michael Mraka
Tag 'rhn-client-tools-1.6.7-1' created by Michael Mraka <michael.mraka(a)redhat.com> at 2011-08-04 12:47 +0000
Tagging package [rhn-client-tools] version [1.6.7-1] in directory [client/rhel/rhn-client-tools/].
Changes since yum-rhn-plugin-1.6.4-1:
Michael Mraka (2):
the latest yum-rhn-plugin and rhn-client-tools require each other
Automatic commit of package [rhn-client-tools] release [1.6.7-1].
---
client/rhel/rhn-client-tools/rhn-client-tools.spec | 9 ++++++---
client/rhel/yum-rhn-plugin/yum-rhn-plugin.spec | 2 +-
rel-eng/packages/rhn-client-tools | 2 +-
3 files changed, 8 insertions(+), 5 deletions(-)
---
12 years, 9 months