Changes to 'refs/tags/spacewalk-schema-1.4.5-1'
by Jan Pazdziora
Tag 'spacewalk-schema-1.4.5-1' created by Jan Pazdziora <jpazdziora(a)redhat.com> at 2011-02-24 13:14 +0000
Tagging package [spacewalk-schema] version [1.4.5-1] in directory [schema/spacewalk/].
Changes since spacewalk-backend-1.4.11-1:
Jan Pazdziora (3):
Adding a schema upgrade script for the web_cust_notif_seq drop.
Adding a schema upgrade script for the sat_node_probe drop.
Automatic commit of package [spacewalk-schema] release [1.4.5-1].
---
rel-eng/packages/spacewalk-schema | 2 +-
schema/spacewalk/spacewalk-schema.spec | 6 +++++-
schema/spacewalk/upgrade/spacewalk-schema-1.3-to-spacewalk-schema-1.4/005-web_cust_notif_seq_drop.sql | 1 +
schema/spacewalk/upgrade/spacewalk-schema-1.3-to-spacewalk-schema-1.4/006-sat_node_probe_drop.sql.oracle | 1 +
schema/spacewalk/upgrade/spacewalk-schema-1.3-to-spacewalk-schema-1.4/006-sat_node_probe_drop.sql.postgresql | 2 ++
5 files changed, 10 insertions(+), 2 deletions(-)
---
13 years, 2 months
rel-eng/packages schema/spacewalk
by Jan Pazdziora
rel-eng/packages/spacewalk-schema | 2 +-
schema/spacewalk/spacewalk-schema.spec | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
New commits:
commit d654c762a5fc7e1c153aa6d01b0f2285ab222217
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Thu Feb 24 14:14:16 2011 +0100
Automatic commit of package [spacewalk-schema] release [1.4.5-1].
diff --git a/rel-eng/packages/spacewalk-schema b/rel-eng/packages/spacewalk-schema
index 717a520..38793ac 100644
--- a/rel-eng/packages/spacewalk-schema
+++ b/rel-eng/packages/spacewalk-schema
@@ -1 +1 @@
-1.4.4-1 schema/spacewalk/
+1.4.5-1 schema/spacewalk/
diff --git a/schema/spacewalk/spacewalk-schema.spec b/schema/spacewalk/spacewalk-schema.spec
index 45416ff..e444f1e 100644
--- a/schema/spacewalk/spacewalk-schema.spec
+++ b/schema/spacewalk/spacewalk-schema.spec
@@ -2,7 +2,7 @@ Name: spacewalk-schema
Group: Applications/Internet
Summary: Oracle SQL schema for Spacewalk server
-Version: 1.4.4
+Version: 1.4.5
Release: 1%{?dist}
Source0: %{name}-%{version}.tar.gz
@@ -66,6 +66,10 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/spacewalk-sql*
%changelog
+* Thu Feb 24 2011 Jan Pazdziora 1.4.5-1
+- Adding a schema upgrade script for the sat_node_probe drop.
+- Adding a schema upgrade script for the web_cust_notif_seq drop.
+
* Wed Feb 23 2011 Michael Mraka <michael.mraka(a)redhat.com> 1.4.4-1
- schema upgrade script for dropped tables
13 years, 2 months
2 commits - schema/spacewalk
by Jan Pazdziora
schema/spacewalk/upgrade/spacewalk-schema-1.3-to-spacewalk-schema-1.4/005-web_cust_notif_seq_drop.sql | 1 +
schema/spacewalk/upgrade/spacewalk-schema-1.3-to-spacewalk-schema-1.4/006-sat_node_probe_drop.sql.oracle | 1 +
schema/spacewalk/upgrade/spacewalk-schema-1.3-to-spacewalk-schema-1.4/006-sat_node_probe_drop.sql.postgresql | 2 ++
3 files changed, 4 insertions(+)
New commits:
commit 0c9a582a25b33a9e16020a8b027432d717dda525
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Thu Feb 24 14:12:51 2011 +0100
Adding a schema upgrade script for the sat_node_probe drop.
diff --git a/schema/spacewalk/upgrade/spacewalk-schema-1.3-to-spacewalk-schema-1.4/006-sat_node_probe_drop.sql.oracle b/schema/spacewalk/upgrade/spacewalk-schema-1.3-to-spacewalk-schema-1.4/006-sat_node_probe_drop.sql.oracle
new file mode 100644
index 0000000..b1dfc94
--- /dev/null
+++ b/schema/spacewalk/upgrade/spacewalk-schema-1.3-to-spacewalk-schema-1.4/006-sat_node_probe_drop.sql.oracle
@@ -0,0 +1 @@
+drop synonym sat_node_probe;
diff --git a/schema/spacewalk/upgrade/spacewalk-schema-1.3-to-spacewalk-schema-1.4/006-sat_node_probe_drop.sql.postgresql b/schema/spacewalk/upgrade/spacewalk-schema-1.3-to-spacewalk-schema-1.4/006-sat_node_probe_drop.sql.postgresql
new file mode 100644
index 0000000..5cf6662
--- /dev/null
+++ b/schema/spacewalk/upgrade/spacewalk-schema-1.3-to-spacewalk-schema-1.4/006-sat_node_probe_drop.sql.postgresql
@@ -0,0 +1,2 @@
+-- oracle equivalent source sha1 c940310f53ab18827e700382712afb9b3607da97
+-- This file is intentionally left empty.
commit b9ba592ba2bf7c16dd474edd3e640394a778a797
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Thu Feb 24 14:12:27 2011 +0100
Adding a schema upgrade script for the web_cust_notif_seq drop.
diff --git a/schema/spacewalk/upgrade/spacewalk-schema-1.3-to-spacewalk-schema-1.4/005-web_cust_notif_seq_drop.sql b/schema/spacewalk/upgrade/spacewalk-schema-1.3-to-spacewalk-schema-1.4/005-web_cust_notif_seq_drop.sql
new file mode 100644
index 0000000..a19a6cc
--- /dev/null
+++ b/schema/spacewalk/upgrade/spacewalk-schema-1.3-to-spacewalk-schema-1.4/005-web_cust_notif_seq_drop.sql
@@ -0,0 +1 @@
+drop sequence web_cust_notif_seq;
13 years, 2 months
Changes to 'refs/tags/spacewalk-backend-1.4.11-1'
by Michael Mraka
Tag 'spacewalk-backend-1.4.11-1' created by Michael Mraka <michael.mraka(a)redhat.com> at 2011-02-24 10:05 +0000
Tagging package [spacewalk-backend] version [1.4.11-1] in directory [backend/].
Changes since spacewalk-java-1.4.10-1:
Michael Mraka (6):
use size instead of archivesize
removing obsoleted code
RPMReadOnlyTransaction() is dead after get_package_header() change
SharedStateTransaction is dead after RPMReadOnlyTransaction removal
RPMTransaction is dead after RPMReadOnlyTransaction removal
Automatic commit of package [spacewalk-backend] release [1.4.11-1].
---
backend/server/importlib/headerSource.py | 4 -
backend/spacewalk-backend.spec | 8 ++
backend/spacewalk/common/rhn_rpm.py | 89 +------------------------------
client/tools/rhnpush/rpm2mpm.py | 2
rel-eng/packages/spacewalk-backend | 2
5 files changed, 14 insertions(+), 91 deletions(-)
---
13 years, 2 months
backend/spacewalk-backend.spec rel-eng/packages
by Michael Mraka
backend/spacewalk-backend.spec | 8 +++++++-
rel-eng/packages/spacewalk-backend | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
New commits:
commit a761f340df21638839a909fc7c84f633fc7f190d
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Thu Feb 24 11:05:07 2011 +0100
Automatic commit of package [spacewalk-backend] release [1.4.11-1].
diff --git a/backend/spacewalk-backend.spec b/backend/spacewalk-backend.spec
index b904c8e..5fed5fc 100644
--- a/backend/spacewalk-backend.spec
+++ b/backend/spacewalk-backend.spec
@@ -11,7 +11,7 @@ Name: spacewalk-backend
Summary: Common programs needed to be installed on the Spacewalk servers/proxies
Group: Applications/Internet
License: GPLv2 and Python
-Version: 1.4.10
+Version: 1.4.11
Release: 1%{?dist}
URL: https://fedorahosted.org/spacewalk
Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
@@ -686,6 +686,12 @@ rm -f %{rhnconf}/rhnSecret.py*
# $Id$
%changelog
+* Thu Feb 24 2011 Michael Mraka <michael.mraka(a)redhat.com> 1.4.11-1
+- RPMTransaction is dead after RPMReadOnlyTransaction removal
+- SharedStateTransaction is dead after RPMReadOnlyTransaction removal
+- RPMReadOnlyTransaction() is dead after get_package_header() change
+- use size instead of archivesize
+
* Thu Feb 24 2011 Michael Mraka <michael.mraka(a)redhat.com> 1.4.10-1
- set timeout after unsuccessful login
- removed unused/unsupported API
diff --git a/rel-eng/packages/spacewalk-backend b/rel-eng/packages/spacewalk-backend
index 2a66472..75f875b 100644
--- a/rel-eng/packages/spacewalk-backend
+++ b/rel-eng/packages/spacewalk-backend
@@ -1 +1 @@
-1.4.10-1 backend/
+1.4.11-1 backend/
13 years, 2 months
5 commits - backend/server backend/spacewalk client/tools
by Michael Mraka
backend/server/importlib/headerSource.py | 4 -
backend/spacewalk/common/rhn_rpm.py | 89 +------------------------------
client/tools/rhnpush/rpm2mpm.py | 2
3 files changed, 6 insertions(+), 89 deletions(-)
New commits:
commit 8c3b360efb9fcbc8f2d4a91feff0ae954cef330a
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Thu Feb 24 10:29:55 2011 +0100
RPMTransaction is dead after RPMReadOnlyTransaction removal
diff --git a/backend/spacewalk/common/rhn_rpm.py b/backend/spacewalk/common/rhn_rpm.py
index 67108cf..7940a79 100644
--- a/backend/spacewalk/common/rhn_rpm.py
+++ b/backend/spacewalk/common/rhn_rpm.py
@@ -55,58 +55,6 @@ PGPHASHALGO = {
class InvalidPackageError(Exception):
pass
-class RPMTransaction:
- """ wrapper/proxy class for rpm.Transaction so we can instrument it, etc easily """
- read_only = 0
- def __init__(self):
- self.ts = rpm.TransactionSet()
- self.tsflags = []
-
- def getMethod(self, method):
- # in theory, we can override this with
- # profile/etc info
- return getattr(self.ts, method)
-
- def pushVSFlags(self, flags):
- """ push method, so we don't lose the previous set value, and we can potentially debug a bit easier """
- self.tsflags.append(flags)
- self.ts.setVSFlags(self.tsflags[-1])
-
- def popVSFlags(self):
- """ pop method, so we don't lose the previous set value, and we can potentially debug a bit easier """
- del self.tsflags[-1]
- self.ts.setVSFlags(self.tsflags[-1])
-
- def addInstall(self, arg1, arg2, mode):
- """Install a package"""
- hdr = arg1.hdr
- return self.ts.addInstall(hdr, arg2, mode)
-
- def addErase(self, arg1):
- """Erase a package"""
- hdr = arg1.hdr
- return self.ts.addErase(hdr)
-
- def check(self):
- """Check dependencies"""
- return self.ts.check()
-
- def setFlags(self, flag):
- """Set transaction flags"""
- return self.ts.setFlags(flag)
-
- def setProbFilter(self, flag):
- """Set problem flags"""
- return self.ts.setProbFilter(flag)
-
- def run(self, callback, user_data):
- return self.ts.run(callback, user_data)
-
- def hdrFromFdno(self, fd):
- return self.ts.hdrFromFdno(fd)
-
-
-
class RPM_Header:
"Wrapper class for an rpm header - we need to store a flag is_source"
def __init__(self, hdr, is_source=None):
commit 4c8961d665d9317eee3ffbbb4303e944df81c165
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Thu Feb 24 10:27:21 2011 +0100
SharedStateTransaction is dead after RPMReadOnlyTransaction removal
diff --git a/backend/spacewalk/common/rhn_rpm.py b/backend/spacewalk/common/rhn_rpm.py
index 32b0eca..67108cf 100644
--- a/backend/spacewalk/common/rhn_rpm.py
+++ b/backend/spacewalk/common/rhn_rpm.py
@@ -107,12 +107,6 @@ class RPMTransaction:
-class SharedStateTransaction:
- _shared_state = {}
-
- def __init__(self):
- self.__dict__ = self._shared_state
-
class RPM_Header:
"Wrapper class for an rpm header - we need to store a flag is_source"
def __init__(self, hdr, is_source=None):
commit 961035ad79a1d27d7e57b70bff762d60589f57cb
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Thu Feb 24 10:25:13 2011 +0100
RPMReadOnlyTransaction() is dead after get_package_header() change
diff --git a/backend/spacewalk/common/rhn_rpm.py b/backend/spacewalk/common/rhn_rpm.py
index ffbb637..32b0eca 100644
--- a/backend/spacewalk/common/rhn_rpm.py
+++ b/backend/spacewalk/common/rhn_rpm.py
@@ -113,15 +113,6 @@ class SharedStateTransaction:
def __init__(self):
self.__dict__ = self._shared_state
-class RPMReadOnlyTransaction(SharedStateTransaction, RPMTransaction):
- read_only = 1
- def __init__(self):
- SharedStateTransaction.__init__(self)
- if not hasattr(self, 'ts'):
- RPMTransaction.__init__(self)
- # FIXME: replace with macro defination
- self.pushVSFlags(8)
-
class RPM_Header:
"Wrapper class for an rpm header - we need to store a flag is_source"
def __init__(self, hdr, is_source=None):
commit f32d1af0ad802f3e4f3f9ed6a519d7580702ae8d
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Thu Feb 24 10:19:57 2011 +0100
removing obsoleted code
rpm.readHeaderFromFD() is on all OS we support
diff --git a/backend/spacewalk/common/rhn_rpm.py b/backend/spacewalk/common/rhn_rpm.py
index 86d89c7..ffbb637 100644
--- a/backend/spacewalk/common/rhn_rpm.py
+++ b/backend/spacewalk/common/rhn_rpm.py
@@ -262,25 +262,9 @@ def get_package_header(filename=None, file=None, fd=None):
else:
file_desc = f.fileno()
-# FIXME:
- if None:
- pass
-# - readHeaderFromFD() doesn't set hdr['archivesize'] which makes payload_size = 0
-# for all imported packages
-# - this code was introduced as a fix of bz 487621; if it re-appears then uncomment
-# and try to fix missing hdr['archivesize'] another way
-# #if hasattr(rpm, 'readHeaderFromFD'):
-#
-# header_start, header_end = \
-# get_header_byte_range(os.fdopen(os.dup(file_desc)))
-# os.lseek(file_desc, header_start, 0)
-# hdr, offset = rpm.readHeaderFromFD(file_desc)
- else:
- # RHEL-4 and older, do the old way
- ts = RPMReadOnlyTransaction()
- ts.pushVSFlags(~(rpm.RPMVSF_NOMD5 | rpm.RPMVSF_NEEDPAYLOAD))
- hdr = ts.hdrFromFdno(file_desc)
- ts.popVSFlags()
+ header_start, header_end = get_header_byte_range(os.fdopen(os.dup(file_desc)))
+ os.lseek(file_desc, header_start, 0)
+ hdr, offset = rpm.readHeaderFromFD(file_desc)
if hdr is None:
raise InvalidPackageError
is_source = hdr[rpm.RPMTAG_SOURCEPACKAGE]
commit c34ece4eca1f0480b41a5e6198c3870d1b836981
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Thu Feb 24 10:22:39 2011 +0100
use size instead of archivesize
so we can use readHeaderFromFD() instead of TransactionSet() and hdrFromFdno()
diff --git a/backend/server/importlib/headerSource.py b/backend/server/importlib/headerSource.py
index 552e121..e763914 100644
--- a/backend/server/importlib/headerSource.py
+++ b/backend/server/importlib/headerSource.py
@@ -120,7 +120,7 @@ class rpmBinaryPackage(Package, rpmPackage):
tagMap.update({
'package_group' : 'group',
'rpm_version' : 'rpmversion',
- 'payload_size' : 'archivesize',
+ 'payload_size' : 'size',
'payload_format': 'payloadformat',
'build_host' : 'buildhost',
'build_time' : 'buildtime',
@@ -248,7 +248,7 @@ class rpmSourcePackage(SourcePackage, rpmPackage):
tagMap.update({
'package_group' : 'group',
'rpm_version' : 'rpmversion',
- 'payload_size' : 'archivesize',
+ 'payload_size' : 'size',
'build_host' : 'buildhost',
'build_time' : 'buildtime',
'source_rpm' : 'sourcerpm',
diff --git a/client/tools/rhnpush/rpm2mpm.py b/client/tools/rhnpush/rpm2mpm.py
index 1c80b78..16eb601 100644
--- a/client/tools/rhnpush/rpm2mpm.py
+++ b/client/tools/rhnpush/rpm2mpm.py
@@ -47,7 +47,7 @@ def rpm_to_mpm(header, file_stream):
tag_map = {
'package_group' : 'group',
'rpm_version' : 'rpmversion',
- 'payload_size' : 'archivesize',
+ 'payload_size' : 'size',
'payload_format': 'payloadformat',
'build_host' : 'buildhost',
'build_time' : 'buildtime',
13 years, 2 months
Changes to 'refs/tags/spacewalk-java-1.4.10-1'
by Michael Mraka
Tag 'spacewalk-java-1.4.10-1' created by Michael Mraka <michael.mraka(a)redhat.com> at 2011-02-24 07:44 +0000
Tagging package [spacewalk-java] version [1.4.10-1] in directory [java/].
Changes since spacewalk-backend-1.4.10-1:
Michael Mraka (1):
Automatic commit of package [spacewalk-java] release [1.4.10-1].
---
java/spacewalk-java.spec | 6 +++++-
rel-eng/packages/spacewalk-java | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
---
13 years, 2 months
java/spacewalk-java.spec rel-eng/packages
by Michael Mraka
java/spacewalk-java.spec | 6 +++++-
rel-eng/packages/spacewalk-java | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
New commits:
commit a011d54a964325fd58759e2ff56a7f5aad1d84cc
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Thu Feb 24 08:44:26 2011 +0100
Automatic commit of package [spacewalk-java] release [1.4.10-1].
diff --git a/java/spacewalk-java.spec b/java/spacewalk-java.spec
index 2c2096c..04ac8f7 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.9
+Version: 1.4.10
Release: 1%{?dist}
URL: https://fedorahosted.org/spacewalk
Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
@@ -537,6 +537,10 @@ fi
%{jardir}/postgresql-jdbc.jar
%changelog
+* Thu Feb 24 2011 Michael Mraka <michael.mraka(a)redhat.com> 1.4.10-1
+- always generate new session after login
+- set timeout after unsuccessful login
+
* Wed Feb 23 2011 Tomas Lestach <tlestach(a)redhat.com> 1.4.9-1
- 679374 - clone also "Don't install @Base package group" and "Ignore missing
packages" kickstart profile atributes (tlestach(a)redhat.com)
diff --git a/rel-eng/packages/spacewalk-java b/rel-eng/packages/spacewalk-java
index 623c4e4..8a63e46 100644
--- a/rel-eng/packages/spacewalk-java
+++ b/rel-eng/packages/spacewalk-java
@@ -1 +1 @@
-1.4.9-1 java/
+1.4.10-1 java/
13 years, 2 months
Changes to 'refs/tags/spacewalk-backend-1.4.10-1'
by Michael Mraka
Tag 'spacewalk-backend-1.4.10-1' created by Michael Mraka <michael.mraka(a)redhat.com> at 2011-02-24 07:44 +0000
Tagging package [spacewalk-backend] version [1.4.10-1] in directory [backend/].
Changes since spacewalk-java-1.4.9-1:
Michael Mraka (4):
set timeout after unsuccessful login
set timeout after unsuccessful login
always generate new session after login
Automatic commit of package [spacewalk-backend] release [1.4.10-1].
---
backend/server/importlib/userAuth.py | 21 +++++++++-
backend/spacewalk-backend.spec | 6 ++
java/code/src/com/redhat/rhn/frontend/servlets/PxtSessionDelegateImpl.java | 3 +
java/code/src/com/redhat/rhn/manager/user/UserManager.java | 16 ++++++-
rel-eng/packages/spacewalk-backend | 2
5 files changed, 41 insertions(+), 7 deletions(-)
---
13 years, 2 months
backend/spacewalk-backend.spec rel-eng/packages
by Michael Mraka
backend/spacewalk-backend.spec | 6 +++++-
rel-eng/packages/spacewalk-backend | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 05e05d70dfd5088e3e7571dd29a00e7b9b87fdb0
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Thu Feb 24 08:44:02 2011 +0100
Automatic commit of package [spacewalk-backend] release [1.4.10-1].
diff --git a/backend/spacewalk-backend.spec b/backend/spacewalk-backend.spec
index 8dab85c..b904c8e 100644
--- a/backend/spacewalk-backend.spec
+++ b/backend/spacewalk-backend.spec
@@ -11,7 +11,7 @@ Name: spacewalk-backend
Summary: Common programs needed to be installed on the Spacewalk servers/proxies
Group: Applications/Internet
License: GPLv2 and Python
-Version: 1.4.9
+Version: 1.4.10
Release: 1%{?dist}
URL: https://fedorahosted.org/spacewalk
Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
@@ -686,6 +686,10 @@ rm -f %{rhnconf}/rhnSecret.py*
# $Id$
%changelog
+* Thu Feb 24 2011 Michael Mraka <michael.mraka(a)redhat.com> 1.4.10-1
+- set timeout after unsuccessful login
+- removed unused/unsupported API
+
* Thu Feb 17 2011 Michael Mraka <michael.mraka(a)redhat.com> 1.4.9-1
- fixed No module named common
- 677549 - do not require spacewalk-backend-libs in the same version
diff --git a/rel-eng/packages/spacewalk-backend b/rel-eng/packages/spacewalk-backend
index 5896fe5..2a66472 100644
--- a/rel-eng/packages/spacewalk-backend
+++ b/rel-eng/packages/spacewalk-backend
@@ -1 +1 @@
-1.4.9-1 backend/
+1.4.10-1 backend/
13 years, 2 months