Changes to 'IDN'
by Miroslav Suchý
New branch 'IDN' available with the following commits:
commit 5ace7918cdb026a1c4d362ddd2c8dc2dbc375ac9
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Mar 11 17:37:06 2011 +0100
set envelope From to traceback email
This is relict from BZ 132067
addressing:
Standard-error: ERROR: upon attempt to write to log file: 'ascii' codec can't encode character u'\u017e' in position 65: ordinal not in range(128)ERROR: upon attempt to write to log file: 'ascii' codec can't encode character u'\u017e' in position 119: ordinal not in range(128)Traceback (most recent call last):
File "/usr/bin/satellite-sync", line 175, in ?
systemExit_exception(7, "SYNC ERROR: attempting to display as much information as possible:", e)
File "/usr/bin/satellite-sync", line 125, in systemExit_exception
satsync.sendMail(forceEmail=1)
File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py", line 362, in sendMail
rhnMail.send(headers, body, sender=sndr)
File "/usr/lib/python2.4/site-packages/spacewalk/common/rhnMail.py", line 57, in send
server.sendmail(sender, toaddrs, "%s\n%s\n" % (joined_headers, body))
File "/usr/lib64/python2.4/smtplib.py", line 680, in sendmail
raise SMTPSenderRefused(code, resp, from_addr)
smtplib.SMTPSenderRefused: (553, '5.5.4 <rhn-satellite>... Domain name required for sender address rhn-satellite', 'rhn-satellite')
commit 2a50468070cda34630f223d71595ed298174a5cd
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Mar 11 16:50:55 2011 +0100
683200 - instead of encodings.idna use wrapper from rhn.connections, which workaround corner cases
commit e3918f527f3f24377e111fbd461ebe55f90873e7
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Mar 11 13:28:38 2011 +0100
683200 - refactor rhnMail to use python smtplib
rhnMail has problem sending unicode characters, instead of fixing this I choosed
to use python standard module
addressing:
Standard-error: ERROR: upon attempt to write to log file: 'ascii' codec can't encode character u'\u017e' in position 65: ordinal not in range(128)ERROR: upon attempt to write to log file: 'ascii' codec can't encode character u'\u017e' in position 119: ordinal not in range(128)Traceback (most recent call last):
File "/usr/bin/satellite-sync", line 175, in ?
systemExit_exception(7, "SYNC ERROR: attempting to display as much information as possible:", e)
File "/usr/bin/satellite-sync", line 125, in systemExit_exception
satsync.sendMail(forceEmail=1)
File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py", line 362, in sendMail
rhnMail.send(headers, body, sender=sndr)
File "/usr/lib/python2.4/site-packages/spacewalk/common/rhnMail.py", line 71, in send
os.write(write, "\n%s\n" % body)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u017e' in position 48: ordinal not in range(128)
commit 72aa15828a843cd2ffef5290f814879c8078f894
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Mar 11 11:29:55 2011 +0100
683200 - cStringIO could not handle Unicode
addressing:
Standard-error: ERROR: upon attempt to write to log file: 'ascii' codec can't encode character u'\u017e' in position 65: ordinal not in range(128)ERROR: upon attempt to write to log file: 'ascii' codec can't encode character u'\u017e' in position 119: ordinal not in range(128)Traceback (most recent call last):
File "/usr/bin/satellite-sync", line 175, in ?
systemExit_exception(7, "SYNC ERROR: attempting to display as much information as possible:", e)
File "/usr/bin/satellite-sync", line 120, in systemExit_exception
syncLib.log2email(-1, tb)
File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/syncLib.py", line 119, in log2email
log2stream(level, msg, cleanYN, notimeYN, EMAIL_LOG)
File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/syncLib.py", line 110, in log2stream
stream.write(_prepLogMsg(m, cleanYN, notimeYN, shortYN=1) + '\n')
UnicodeEncodeError: 'ascii' codec can't encode character u'\u017e' in position 101: ordinal not in range(128)
commit f24311f217d1da8f7a96f9102eac6456f9d579a4
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Thu Mar 10 11:07:57 2011 +0100
683200 - since email may be in Unicode we could not use cStringIO and we should set content type to utf-8
commit 808f87865367c408833bf8786c2182a373ea6698
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Wed Mar 9 12:20:01 2011 +0100
683200 - when reading hostname from config or command line, convert it to Pune encoding
commit e1a60b18082afc2b631b55993bcb65e6dc12940f
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Wed Mar 9 16:00:56 2011 +0100
683200 - when sending Traceback, convert hostname from Pune to Unicode
commit e009b89eaa5dbb09aecf7ee4f1d9ccd37597a262
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Mar 8 23:42:37 2011 +0100
683200 - client/rhn-client-tools - when making profile name from hostname, convert it from Pune encoding
commit 9cf77b6e8e9f30baf2992a446da16918bc319a12
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Mar 8 23:42:05 2011 +0100
683200 - client/solaris - when making profile name from hostname, convert it from Pune encoding
commit 17194f4c15c78009fd62de71d50ac4415e820a5f
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Mar 8 23:40:41 2011 +0100
683200 - rhnpush.py - convert servername from input to Pune encodings
commit 0e28df76babfc483f73aeac1686fc4580e167ef0
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Mar 8 23:39:58 2011 +0100
683200 - spacewalk-create-channel - convert servername from input to Pune encodings
commit 869118314e510a3f86e046d465e6d8548eff68c8
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Mar 8 21:41:21 2011 +0100
683200 - convert db-host from IDN to ascii
db will not probably support it - definitelly Oracle,
but we can be step ahead
13 years, 1 month
Changes to 'refs/tags/spacecmd-1.4.4-1'
by aparsons
Tag 'spacecmd-1.4.4-1' created by Aron Parsons <aparsons(a)redhat.com> at 2011-03-11 21:47 +0000
Tagging package [spacecmd] version [1.4.4-1] in directory [spacecmd/].
Changes since spacecmd-1.4.3-1:
Aron Parsons (2):
spacecmd: added configchannel_verifyfile
Automatic commit of package [spacecmd] release [1.4.4-1].
---
rel-eng/packages/spacecmd | 2 -
spacecmd/spacecmd.spec | 5 +++
spacecmd/src/lib/configchannel.py | 48 ++++++++++++++++++++++++++++++++++++++
3 files changed, 53 insertions(+), 2 deletions(-)
---
13 years, 1 month
2 commits - rel-eng/packages spacecmd/spacecmd.spec spacecmd/src
by aparsons
rel-eng/packages/spacecmd | 2 -
spacecmd/spacecmd.spec | 5 +++
spacecmd/src/lib/configchannel.py | 48 ++++++++++++++++++++++++++++++++++++++
3 files changed, 53 insertions(+), 2 deletions(-)
New commits:
commit 4f37c65b348fa7675c7b9a0de8de03faaee4415e
Author: Aron Parsons <aparsons(a)redhat.com>
Date: Fri Mar 11 16:47:34 2011 -0500
Automatic commit of package [spacecmd] release [1.4.4-1].
diff --git a/rel-eng/packages/spacecmd b/rel-eng/packages/spacecmd
index d8ec123..a641560 100644
--- a/rel-eng/packages/spacecmd
+++ b/rel-eng/packages/spacecmd
@@ -1 +1 @@
-1.4.3-1 spacecmd/
+1.4.4-1 spacecmd/
diff --git a/spacecmd/spacecmd.spec b/spacecmd/spacecmd.spec
index 1313ab6..0302479 100644
--- a/spacecmd/spacecmd.spec
+++ b/spacecmd/spacecmd.spec
@@ -4,7 +4,7 @@
%endif
Name: spacecmd
-Version: 1.4.3
+Version: 1.4.4
Release: 1%{?dist}
Summary: Command-line interface to Spacewalk and Satellite servers
@@ -61,6 +61,9 @@ touch %{buildroot}/%{python_sitelib}/spacecmd/__init__.py
%doc %{_mandir}/man1/spacecmd.1.gz
%changelog
+* Fri Mar 11 2011 Aron Parsons <aparsons(a)redhat.com> 1.4.4-1
+- added configchannel_verifyfile (aparsons(a)redhat.com)
+
* Fri Mar 11 2011 Aron Parsons <aparsons(a)redhat.com> 1.4.3-1
- fix invalid key name in errata_search (aparsons(a)redhat.com)
commit e31c4fb1e4bb89e5be3ae640c79f6015017ac687
Author: Aron Parsons <aparsons(a)redhat.com>
Date: Fri Mar 11 16:46:59 2011 -0500
spacecmd: added configchannel_verifyfile
diff --git a/spacecmd/src/lib/configchannel.py b/spacecmd/src/lib/configchannel.py
index 7f1a27c..5e7d3b3 100644
--- a/spacecmd/src/lib/configchannel.py
+++ b/spacecmd/src/lib/configchannel.py
@@ -660,4 +660,52 @@ def do_configchannel_removefiles(self, args):
if self.user_confirm('Remove these files [y/N]:'):
self.client.configchannel.deleteFiles(self.session, channel, files)
+####################
+
+def help_configchannel_verifyfile(self):
+ print 'configchannel_verifyfile: Verify a configuration file'
+ print 'usage: configchannel_verifyfile CHANNEL FILE <SYSTEMS>'
+ print
+ print self.HELP_SYSTEM_OPTS
+
+
+def complete_configchannel_verifyfile(self, text, line, beg, end):
+ parts = line.split(' ')
+
+ if len(parts) == 2:
+ return tab_completer(self.do_configchannel_list('', True), text)
+ elif len(parts) == 3:
+ channel = parts[1]
+ return tab_completer(self.do_configchannel_listfiles(channel, True),
+ text)
+ elif len(parts) > 3:
+ return self.tab_complete_systems(text)
+
+
+def do_configchannel_verifyfile(self, args):
+ (args, options) = parse_arguments(args)
+
+ if len(args) < 3:
+ self.help_configchannel_verifyfile()
+ return
+
+ channel = args[0]
+ path = args[1]
+
+ # use the systems listed in the SSM
+ if re.match('ssm', args[2], re.I):
+ systems = self.ssm.keys()
+ else:
+ systems = self.expand_systems(args[2:])
+
+ system_ids = [ self.get_system_id(s) for s in systems ]
+
+ action_id = \
+ self.client.configchannel.scheduleFileComparisons(self.session,
+ channel,
+ path,
+ system_ids)
+
+ logging.info('Action ID: %i' % action_id)
+
# vim:ts=4:expandtab:
13 years, 1 month
Changes to 'refs/tags/spacecmd-1.4.3-1'
by aparsons
Tag 'spacecmd-1.4.3-1' created by Aron Parsons <aparsons(a)redhat.com> at 2011-03-11 19:04 +0000
Tagging package [spacecmd] version [1.4.3-1] in directory [spacecmd/].
Changes since spacewalk-java-1.4.17-1:
Aron Parsons (2):
spacecmd: fix invalid key name in errata_search
Automatic commit of package [spacecmd] release [1.4.3-1].
Jan Pazdziora (1):
684245 - lookup of the subscription-manager page via localized title is volatile, let's use its __module__ name.
Milan Zazrivec (1):
624748 - report virtual network interfaces
Tomas Lestach (1):
644880 - fix the condition
---
client/rhel/rhn-client-tools/src/firstboot/rhn_choose_server_gui.py | 5 ++++-
client/rhel/rhn-client-tools/src/up2date_client/hardware.py | 2 +-
java/code/src/com/redhat/rhn/manager/rhnpackage/PackageManager.java | 3 ++-
rel-eng/packages/spacecmd | 2 +-
spacecmd/spacecmd.spec | 5 ++++-
spacecmd/src/lib/errata.py | 4 ++--
6 files changed, 14 insertions(+), 7 deletions(-)
---
13 years, 1 month
2 commits - rel-eng/packages spacecmd/spacecmd.spec spacecmd/src
by aparsons
rel-eng/packages/spacecmd | 2 +-
spacecmd/spacecmd.spec | 5 ++++-
spacecmd/src/lib/errata.py | 4 ++--
3 files changed, 7 insertions(+), 4 deletions(-)
New commits:
commit fe116180a39e43512b670d3d47efe387fbbfa715
Author: Aron Parsons <aparsons(a)redhat.com>
Date: Fri Mar 11 14:04:21 2011 -0500
Automatic commit of package [spacecmd] release [1.4.3-1].
diff --git a/rel-eng/packages/spacecmd b/rel-eng/packages/spacecmd
index 8598618..d8ec123 100644
--- a/rel-eng/packages/spacecmd
+++ b/rel-eng/packages/spacecmd
@@ -1 +1 @@
-1.4.2-1 spacecmd/
+1.4.3-1 spacecmd/
diff --git a/spacecmd/spacecmd.spec b/spacecmd/spacecmd.spec
index 4f5e76a..1313ab6 100644
--- a/spacecmd/spacecmd.spec
+++ b/spacecmd/spacecmd.spec
@@ -4,7 +4,7 @@
%endif
Name: spacecmd
-Version: 1.4.2
+Version: 1.4.3
Release: 1%{?dist}
Summary: Command-line interface to Spacewalk and Satellite servers
@@ -61,6 +61,9 @@ touch %{buildroot}/%{python_sitelib}/spacecmd/__init__.py
%doc %{_mandir}/man1/spacecmd.1.gz
%changelog
+* Fri Mar 11 2011 Aron Parsons <aparsons(a)redhat.com> 1.4.3-1
+- fix invalid key name in errata_search (aparsons(a)redhat.com)
+
* Tue Mar 08 2011 Aron Parsons <aparsons(a)redhat.com> 1.4.2-1
- added group_backup and group_restore functions (john(a)vanzantvoort.org)
- don't get the UUID on older API versions (aparsons(a)redhat.com)
commit f589eab09336f7f8b3452f3c9267582207580785
Author: Aron Parsons <aparsons(a)redhat.com>
Date: Fri Mar 11 14:02:24 2011 -0500
spacecmd: fix invalid key name in errata_search
diff --git a/spacecmd/src/lib/errata.py b/spacecmd/src/lib/errata.py
index 7fa77b1..526c7ef 100644
--- a/spacecmd/src/lib/errata.py
+++ b/spacecmd/src/lib/errata.py
@@ -438,8 +438,8 @@ def do_errata_search(self, args, doreturn=False):
# build a structure to pass to print_errata_summary()
errata.append( {'advisory_name' : name,
- 'advisory_type' : match['type'],
- 'advisory_synopsis' : match['synopsis'],
+ 'advisory_type' : match['advisory_type'],
+ 'advisory_synopsis' : match['advisory_synopsis'],
'date' : match['date'] } )
if add_separator: print self.SEPARATOR
13 years, 1 month
client/rhel
by Jan Pazdziora
client/rhel/rhn-client-tools/src/firstboot/rhn_choose_server_gui.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 5fe434f0802e6d242d706870ff5c79c9e360ca55
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri Mar 11 16:47:46 2011 +0100
684245 - lookup of the subscription-manager page via localized title is volatile, let's use its __module__ name.
diff --git a/client/rhel/rhn-client-tools/src/firstboot/rhn_choose_server_gui.py b/client/rhel/rhn-client-tools/src/firstboot/rhn_choose_server_gui.py
index c139cdf..59967e5 100644
--- a/client/rhel/rhn-client-tools/src/firstboot/rhn_choose_server_gui.py
+++ b/client/rhel/rhn-client-tools/src/firstboot/rhn_choose_server_gui.py
@@ -53,7 +53,10 @@ class moduleClass(Module):
if self.support_sm \
and self.chooseServerPage.hostedButton.get_active() \
and not self.chooseServerPage.chooseServerXml.get_widget("hostedClassicButton").get_active():
- interface.moveToPage(moduleTitle=_("Entitlement Platform Registration"))
+ i = 0
+ while not interface.moduleList[i].__module__.startswith('rhsm_'):
+ i += 1
+ interface.moveToPage(pageNum=i)
return RESULT_JUMP
try:
13 years, 1 month
java/code
by Tomas Lestach
java/code/src/com/redhat/rhn/manager/rhnpackage/PackageManager.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit bcebdb8abb77ab0f9dd955bbf51005c24587a2bf
Author: Tomas Lestach <tlestach(a)redhat.com>
Date: Fri Mar 11 16:26:44 2011 +0100
644880 - fix the condition
diff --git a/java/code/src/com/redhat/rhn/manager/rhnpackage/PackageManager.java b/java/code/src/com/redhat/rhn/manager/rhnpackage/PackageManager.java
index d205939..31b8ba0 100644
--- a/java/code/src/com/redhat/rhn/manager/rhnpackage/PackageManager.java
+++ b/java/code/src/com/redhat/rhn/manager/rhnpackage/PackageManager.java
@@ -1386,7 +1386,8 @@ public class PackageManager extends BaseManager {
if (m.get("package_arch_id") == null) {
archNonCompat.add((Long)m.get("id"));
}
- if (orgId.compareTo((Long)m.get("org_package")) != 0 &&
+ if ((m.get("org_package") == null ||
+ orgId.compareTo((Long)m.get("org_package")) != 0) &&
m.get("org_access") == null &&
m.get("shared_access") == null) {
orgNoAccess.add((Long)m.get("id"));
13 years, 1 month
client/rhel
by Milan Zazrivec
client/rhel/rhn-client-tools/src/up2date_client/hardware.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d0cd57f824269bde5195d49e46fd5fe7b97588e2
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Fri Mar 11 16:15:22 2011 +0100
624748 - report virtual network interfaces
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/hardware.py b/client/rhel/rhn-client-tools/src/up2date_client/hardware.py
index 363a1e9..2063896 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/hardware.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/hardware.py
@@ -494,7 +494,7 @@ def read_network_interfaces():
intDict = {}
intDict['class'] = "NETINTERFACES"
- interfaces = ethtool.get_devices()
+ interfaces = list(set(ethtool.get_devices() + ethtool.get_active_devices()))
for interface in interfaces:
try:
hwaddr = ethtool.get_hwaddr(interface)
13 years, 1 month
Changes to 'refs/tags/spacewalk-java-1.4.17-1'
by Tomas Lestach
Tag 'spacewalk-java-1.4.17-1' created by Tomas Lestach <tlestach(a)redhat.com> at 2011-03-11 15:03 +0000
Tagging package [spacewalk-java] version [1.4.17-1] in directory [java/].
Changes since rhnlib-2.5.35-1:
Tomas Lestach (2):
644880 - fix Long comparism
Automatic commit of package [spacewalk-java] release [1.4.17-1].
---
java/code/src/com/redhat/rhn/manager/rhnpackage/PackageManager.java | 2 +-
java/spacewalk-java.spec | 9 ++++++++-
rel-eng/packages/spacewalk-java | 2 +-
3 files changed, 10 insertions(+), 3 deletions(-)
---
13 years, 1 month
java/spacewalk-java.spec rel-eng/packages
by Tomas Lestach
java/spacewalk-java.spec | 9 ++++++++-
rel-eng/packages/spacewalk-java | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)
New commits:
commit cf85a668249b283ff61f8d25b23b5bdee5bdbea1
Author: Tomas Lestach <tlestach(a)redhat.com>
Date: Fri Mar 11 16:03:42 2011 +0100
Automatic commit of package [spacewalk-java] release [1.4.17-1].
diff --git a/java/spacewalk-java.spec b/java/spacewalk-java.spec
index 7b94943..52e473d 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.4.16
+Version: 1.4.17
Release: 1%{?dist}
URL: https://fedorahosted.org/spacewalk
Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
@@ -537,6 +537,13 @@ fi
%{jardir}/postgresql-jdbc.jar
%changelog
+* Fri Mar 11 2011 Tomas Lestach <tlestach(a)redhat.com> 1.4.17-1
+- 644880 - fix Long comparism (tlestach(a)redhat.com)
+- 644880 - fix permission check to packages (tlestach(a)redhat.com)
+- Casting compare in rhn_probe to string. (jpazdziora(a)redhat.com)
+- Adding the AS keyword to column aliases (for PostgreSQL).
+ (jpazdziora(a)redhat.com)
+
* Thu Mar 10 2011 Tomas Lestach <tlestach(a)redhat.com> 1.4.16-1
- 644880 - speed up channel.software.addPackages API (tlestach(a)redhat.com)
- Subquery in FROM must have an alias in PostgreSQL. (jpazdziora(a)redhat.com)
diff --git a/rel-eng/packages/spacewalk-java b/rel-eng/packages/spacewalk-java
index a7823e7..3df8c7e 100644
--- a/rel-eng/packages/spacewalk-java
+++ b/rel-eng/packages/spacewalk-java
@@ -1 +1 @@
-1.4.16-1 java/
+1.4.17-1 java/
13 years, 1 month