openSUSE Commits
Threads by month
- ----- 2024 -----
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
February 2009
- 1 participants
- 1117 discussions
Hello community,
here is the log from the commit of package perl-HTML-Parser for openSUSE:Factory
checked in at Fri Feb 27 16:15:19 CET 2009.
--------
--- perl-HTML-Parser/perl-HTML-Parser.changes 2009-01-20 16:43:09.000000000 +0100
+++ /mounts/work_src_done/STABLE/perl-HTML-Parser/perl-HTML-Parser.changes 2009-02-27 11:14:10.000000000 +0100
@@ -1,0 +2,13 @@
+Fri Feb 27 10:48:05 CET 2009 - anicka(a)suse.cz
+
+- update to 3.60
+ * Spelling fixes.
+ * Test multi-value headers.
+ * Documentation improvements.
+ * Do not terminate head parsing on the <object> element
+ * Add support for HTML 5 <meta charset> and new HEAD elements.
+ * Short description of the htextsub example
+ * Suppress warning when encode_entities is called with undef
+ * HTML::Parser doesn't compile with perl 5.8.0.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
HTML-Parser-3.59.tar.bz2
New:
----
HTML-Parser-3.60.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-HTML-Parser.spec ++++++
--- /var/tmp/diff_new_pack.o27775/_old 2009-02-27 16:15:10.000000000 +0100
+++ /var/tmp/diff_new_pack.o27775/_new 2009-02-27 16:15:10.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package perl-HTML-Parser (Version 3.59)
+# spec file for package perl-HTML-Parser (Version 3.60)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -20,7 +20,7 @@
Name: perl-HTML-Parser
BuildRequires: perl-HTML-Tagset
-Version: 3.59
+Version: 3.60
Release: 1
Provides: perl_htp
Obsoletes: perl_htp
@@ -70,6 +70,16 @@
/var/adm/perl-modules/%{name}
%changelog
+* Fri Feb 27 2009 anicka(a)suse.cz
+- update to 3.60
+ * Spelling fixes.
+ * Test multi-value headers.
+ * Documentation improvements.
+ * Do not terminate head parsing on the <object> element
+ * Add support for HTML 5 <meta charset> and new HEAD elements.
+ * Short description of the htextsub example
+ * Suppress warning when encode_entities is called with undef
+ * HTML::Parser doesn't compile with perl 5.8.0.
* Tue Jan 20 2009 anicka(a)suse.cz
- update to 3.59
* Restore perl-5.6 compatibility for HTML::HeadParser.
++++++ HTML-Parser-3.59.tar.bz2 -> HTML-Parser-3.60.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/HTML-Parser-3.59/Changes new/HTML-Parser-3.60/Changes
--- old/HTML-Parser-3.59/Changes 2008-11-24 10:06:21.000000000 +0100
+++ new/HTML-Parser-3.60/Changes 2009-02-09 12:17:15.000000000 +0100
@@ -1,3 +1,25 @@
+_______________________________________________________________________________
+2009-02-09 Release 3.60
+
+Ville Skytta (5):
+ Spelling fixes.
+ Test multi-value headers.
+ Documentation improvements.
+ Do not terminate head parsing on the <object> element (added in HTML 4.0).
+ Add support for HTML 5 <meta charset> and new HEAD elements.
+
+Damyan Ivanov (1):
+ Short description of the htextsub example
+
+Mike South (1):
+ Suppress warning when encode_entities is called with undef [RT#27567]
+
+Zefram (1):
+ HTML::Parser doesn't compile with perl 5.8.0.
+
+
+
+_______________________________________________________________________________
2008-11-24 Gisle Aas <gisle(a)ActiveState.com>
Release 3.59
@@ -8,6 +30,7 @@
+_______________________________________________________________________________
2008-11-17 Gisle Aas <gisle(a)ActiveState.com>
Release 3.58
@@ -21,6 +44,7 @@
+_______________________________________________________________________________
2008-11-16 Gisle Aas <gisle(a)ActiveState.com>
Release 3.57
@@ -37,11 +61,12 @@
+_______________________________________________________________________________
2007-01-12 Gisle Aas <gisle(a)ActiveState.com>
Release 3.56
- Cloning of parser state for compatiblity with threads.
+ Cloning of parser state for compatibility with threads.
Fixed by Bo Lindbergh <blgl(a)hagernas.com>.
Don't require whitespace between declaration tokens.
@@ -49,6 +74,7 @@
+_______________________________________________________________________________
2006-07-10 Gisle Aas <gisle(a)ActiveState.com>
Release 3.55
@@ -56,7 +82,7 @@
Treat <> at the end of document as text. Used to be
reported as a comment.
- Improved Firefox compatiblity for bad HTML:
+ Improved Firefox compatibility for bad HTML:
- Unclosed <script>, <style> are now treated as empty tags.
- Unclosed <textarea>, <xmp> and <plaintext> treat rest as text.
- Unclosed <title> closes at next tag.
@@ -65,6 +91,7 @@
+_______________________________________________________________________________
2006-04-28 Gisle Aas <gisle(a)ActiveState.com>
Release 3.54
@@ -78,6 +105,7 @@
+_______________________________________________________________________________
2006-04-27 Gisle Aas <gisle(a)ActiveState.com>
Release 3.53
@@ -90,6 +118,7 @@
+_______________________________________________________________________________
2006-04-26 Gisle Aas <gisle(a)ActiveState.com>
Release 3.52
@@ -103,6 +132,7 @@
+_______________________________________________________________________________
2006-03-22 Gisle Aas <gisle(a)ActiveState.com>
Release 3.51
@@ -120,6 +150,7 @@
+_______________________________________________________________________________
2006-02-14 Gisle Aas <gisle(a)ActiveState.com>
Release 3.50
@@ -129,6 +160,7 @@
+_______________________________________________________________________________
2006-02-08 Gisle Aas <gisle(a)ActiveState.com>
Release 3.49
@@ -141,6 +173,7 @@
+_______________________________________________________________________________
2005-12-02 Gisle Aas <gisle(a)ActiveState.com>
Release 3.48
@@ -257,7 +290,7 @@
garbage with older versions of perl.
Emit warning if entities are decoded and something in the first
- chunk looks like hibit UTF-8. Previously this warning was only
+ chunk looks like hi-bit UTF-8. Previously this warning was only
triggered for documents with BOM.
@@ -344,7 +377,7 @@
Release 3.37
Improved handling of HTML encoded surrogate pairs and illegally
- endoded Unicode; <http://rt.cpan.org/Ticket/Display.html?id=7785>.
+ encoded Unicode; <http://rt.cpan.org/Ticket/Display.html?id=7785>.
Patch by John Gardiner Myers <jgmyers(a)proofpoint.com>.
Avoid generating bad UTF8 strings when decoding entities
@@ -599,7 +632,7 @@
Release 3.21
- Fix a memory leak which occured when using filter methods.
+ Fix a memory leak which occurred when using filter methods.
Avoid a few compiler warnings (DEC C):
- Trailing comma found in enumerator list
@@ -1274,7 +1307,7 @@
Faster HTML::LinkExtor by taking advantage of the new
callback interface. The module now also uses URI.pm (instead
- of the old URI::URL) to do URI-absolutations.
+ of the old URI::URL) to absolutize URIs.
Faster HTML::TokeParser by taking advantage of new
accum interface.
@@ -1408,7 +1441,7 @@
instead of raising an exception, and strings like "*STDIN" are not
treated as globs any more.
- HTML::LinkExtor knowns about background attribute of <tables>.
+ HTML::LinkExtor knows about background attribute of <tables>.
Patch by Clinton Wong <clintdw(a)netcom.com>
HTML::TokeParser will parse large inline strings much faster now.
@@ -1491,7 +1524,7 @@
Release 2.16
- The HTML::Parser could some times break hex entites (like )
+ The HTML::Parser could some times break hex entities (like )
in the middle.
Removed remaining forced dependencies on libwww-perl modules. It
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/HTML-Parser-3.59/eg/htextsub new/HTML-Parser-3.60/eg/htextsub
--- old/HTML-Parser-3.59/eg/htextsub 2008-04-04 10:44:54.000000000 +0200
+++ new/HTML-Parser-3.60/eg/htextsub 2009-02-09 11:57:53.000000000 +0100
@@ -1,5 +1,9 @@
#!/usr/bin/perl -w
+# Shows how to mangle all plain text in an HTML document, using an arbitrary
+# Perl expression. Plain text is all text not within a tag declaration, i.e.
+# not in <p ...>, but possibly between <p> and </p>
+
use strict;
my $code = shift || usage();
$code = 'sub edit_print { local $_ = shift; ' . $code . '; print }';
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/HTML-Parser-3.59/lib/HTML/Entities.pm new/HTML-Parser-3.60/lib/HTML/Entities.pm
--- old/HTML-Parser-3.59/lib/HTML/Entities.pm 2008-11-17 12:25:53.000000000 +0100
+++ new/HTML-Parser-3.60/lib/HTML/Entities.pm 2009-02-09 12:19:02.000000000 +0100
@@ -57,7 +57,7 @@
single character strings. If a key has ";" as suffix,
then occurrences in $string are only expanded if properly terminated
with ";". Entities without ";" will be expanded regardless of how
-they are terminated for compatiblity with how common browsers treat
+they are terminated for compatibility with how common browsers treat
entities in the Latin-1 range.
If $expand_prefix is TRUE then entities without trailing ";" in
@@ -139,7 +139,7 @@
@EXPORT = qw(encode_entities decode_entities _decode_entities);
@EXPORT_OK = qw(%entity2char %char2entity encode_entities_numeric);
-$VERSION = "3.57";
+$VERSION = "3.60";
sub Version { $VERSION; }
require HTML::Parser; # for fast XS implemented decode_entities
@@ -446,6 +446,7 @@
sub encode_entities
{
+ return undef unless defined $_[0];
my $ref;
if (defined wantarray) {
my $x = $_[0];
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/HTML-Parser-3.59/lib/HTML/HeadParser.pm new/HTML-Parser-3.60/lib/HTML/HeadParser.pm
--- old/HTML-Parser-3.59/lib/HTML/HeadParser.pm 2008-11-24 10:04:29.000000000 +0100
+++ new/HTML-Parser-3.60/lib/HTML/HeadParser.pm 2009-02-09 12:19:17.000000000 +0100
@@ -13,6 +13,8 @@
$p->header('Title') # to access <title>....</title>
$p->header('Content-Base') # to access <base href="http://...">
$p->header('Foo') # to access <meta http-equiv="Foo" content="...">
+ $p->header('X-Meta-Author') # to access <meta name="author" content="...">
+ $p->header('X-Meta-Charset') # to access <meta charset="...">
=head1 DESCRIPTION
@@ -52,9 +54,18 @@
=item X-Meta-Foo:
-All E<lt>meta> elements will initialize headers with the prefix
-"C<X-Meta->" on the name. If the E<lt>meta> element contains a
-C<http-equiv> attribute, then it will be honored as the header name.
+All E<lt>meta> elements containing a C<name> attribute will result in
+headers using the prefix C<X-Meta-> appended with the value of the
+C<name> attribute as the name of the header, and the value of the
+C<content> attribute as the pushed header value.
+
+E<lt>meta> elements containing a C<http-equiv> attribute will result
+in headers as in above, but without the C<X-Meta-> prefix in the
+header name.
+
+E<lt>meta> elements containing a C<charset> attribute will result in
+an C<X-Meta-Charset> header, using the value of the C<charset>
+attribute as the pushed header value.
=back
@@ -76,7 +87,7 @@
use strict;
use vars qw($VERSION $DEBUG);
#$DEBUG = 1;
-$VERSION = "3.59";
+$VERSION = "3.60";
=item $hp = HTML::HeadParser->new
@@ -85,7 +96,7 @@
The object constructor. The optional $header argument should be a
reference to an object that implement the header() and push_header()
methods as defined by the C<HTTP::Headers> class. Normally it will be
-of some class that isa or delegates to the C<HTTP::Headers> class.
+of some class that is a or delegates to the C<HTTP::Headers> class.
If no $header is given C<HTML::HeadParser> will create an
C<HTTP::Header> object by itself (initially empty).
@@ -157,7 +168,14 @@
# SCRIPT* & META* & LINK*">
#
# <!ELEMENT HEAD O O (%head.content)>
-
+#
+# From HTML 4.01:
+#
+# <!ENTITY % head.misc "SCRIPT|STYLE|META|LINK|OBJECT">
+# <!ENTITY % head.content "TITLE & BASE?">
+# <!ELEMENT HEAD O O (%head.content;) +(%head.misc;)>
+#
+# Added in HTML 5: noscript, eventsource, command
sub start
{
@@ -167,8 +185,15 @@
if ($tag eq 'meta') {
my $key = $attr->{'http-equiv'};
if (!defined($key) || !length($key)) {
- return unless $attr->{'name'};
- $key = "X-Meta-\u$attr->{'name'}";
+ if ($attr->{name}) {
+ $key = "X-Meta-\u$attr->{name}";
+ } elsif ($attr->{charset}) { # HTML 5 <meta charset="...">
+ $key = "X-Meta-Charset";
+ $self->{header}->push_header($key => $attr->{charset});
+ return;
+ } else {
+ return;
+ }
}
$self->{'header'}->push_header($key => $attr->{content});
} elsif ($tag eq 'base') {
@@ -178,7 +203,8 @@
# This is a non-standard header. Perhaps we should just ignore
# this element
$self->{'header'}->push_header(Isindex => $attr->{prompt} || '?');
- } elsif ($tag =~ /^(?:title|script|style)$/) {
+ } elsif ($tag =~ /^(?:title|(?:no)?script|style|object
+ |eventsource|command)$/x) {
# Just remember tag. Initialize header when we see the end tag.
$self->{'tag'} = $tag;
} elsif ($tag eq 'link') {
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/HTML-Parser-3.59/lib/HTML/LinkExtor.pm new/HTML-Parser-3.60/lib/HTML/LinkExtor.pm
--- old/HTML-Parser-3.59/lib/HTML/LinkExtor.pm 2008-04-04 10:44:54.000000000 +0200
+++ new/HTML-Parser-3.60/lib/HTML/LinkExtor.pm 2009-02-09 12:20:17.000000000 +0100
@@ -2,7 +2,7 @@
require HTML::Parser;
@ISA = qw(HTML::Parser);
-$VERSION = "3.57";
+$VERSION = "3.60";
=head1 NAME
@@ -104,7 +104,7 @@
=item $p->links
Returns a list of all links found in the document. The returned
-values will be anonymous arrays with the follwing elements:
+values will be anonymous arrays with the following elements:
[$tag, $attr => $url1, $attr2 => $url2,...]
@@ -155,7 +155,7 @@
}
# Make the parser. Unfortunately, we don't know the base yet
- # (it might be diffent from $url)
+ # (it might be different from $url)
$p = HTML::LinkExtor->new(\&callback);
# Request document and parse it as it arrives
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/HTML-Parser-3.59/META.yml new/HTML-Parser-3.60/META.yml
--- old/HTML-Parser-3.59/META.yml 2008-11-24 10:12:16.000000000 +0100
+++ new/HTML-Parser-3.60/META.yml 2009-02-09 12:22:16.000000000 +0100
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: HTML-Parser
-version: 3.59
+version: 3.60
abstract: HTML parser class
author:
- Gisle Aas <gisle(a)activestate.com>
@@ -21,7 +21,7 @@
directory:
- t
- inc
-generated_by: ExtUtils::MakeMaker version 6.48
+generated_by: ExtUtils::MakeMaker version 6.4801
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/HTML-Parser-3.59/Parser.pm new/HTML-Parser-3.60/Parser.pm
--- old/HTML-Parser-3.59/Parser.pm 2008-11-24 10:03:58.000000000 +0100
+++ new/HTML-Parser-3.60/Parser.pm 2009-02-09 12:11:54.000000000 +0100
@@ -9,7 +9,7 @@
use strict;
use vars qw($VERSION @ISA);
-$VERSION = "3.59";
+$VERSION = "3.60";
require HTML::Entities;
@@ -334,8 +334,8 @@
=item $p->backquote( $bool )
By default, only ' and " are recognized as quote characters around
-attribute values. MSIE also recognize backquotes for some reason.
-Enabling this attribute provide compatiblity with this behaviour.
+attribute values. MSIE also recognizes backquotes for some reason.
+Enabling this attribute provides compatibility with this behaviour.
=item $p->boolean_attribute_value( $val )
@@ -1200,7 +1200,7 @@
The parser can process raw undecoded UTF-8 sanely if the C<utf8_mode>
is enabled or if the "attr", "@attr" or "dtext" argspecs is avoided.
-=item Parsing string decoded with wrong endianess
+=item Parsing string decoded with wrong endianness
(W) The first character in the document is U+FFFE. This is not a
legal Unicode character but a byte swapped BOM. The result of parsing
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/HTML-Parser-3.59/Parser.xs new/HTML-Parser-3.60/Parser.xs
--- old/HTML-Parser-3.59/Parser.xs 2008-04-04 10:44:54.000000000 +0200
+++ new/HTML-Parser-3.60/Parser.xs 2009-02-09 11:47:47.000000000 +0100
@@ -98,6 +98,10 @@
#define DOWARN PL_dowarn
#endif
+#ifndef CLONEf_JOIN_IN
+ #define CLONEf_JOIN_IN 0
+#endif
+
/*
* Include stuff. We include .c files instead of linking them,
* so that they don't have to pollute the external dll name space.
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/HTML-Parser-3.59/t/headparser.t new/HTML-Parser-3.60/t/headparser.t
--- old/HTML-Parser-3.59/t/headparser.t 2008-11-17 10:34:49.000000000 +0100
+++ new/HTML-Parser-3.60/t/headparser.t 2009-01-19 09:48:23.000000000 +0100
@@ -1,7 +1,7 @@
#!perl -w
use strict;
-use Test::More tests => 13;
+use Test::More tests => 15;
{ package H;
sub new { bless {}, shift; }
@@ -55,10 +55,14 @@
ignore this
</script>
+<noscript> ... and this </noscript>
+
+<object classid="foo">
<base href="http://www.sn.no">
<meta name="Keywords" content="test, test, test,...">
<meta name="Keywords" content="more">
+<meta charset="ISO-8859-1"><!-- HTML 5 -->
Dette er vanlig tekst. Denne teksten definerer ogs� slutten p�
<head> delen av dokumentet.
@@ -91,6 +95,8 @@
like($p->header('Title'), qr/� v�re eller � ikke v�re/);
is($p->header('Expires'), 'Soon');
is($p->header('Content-Base'), 'http://www.sn.no');
+is_deeply($p->header('X-Meta-Keywords'), ['test, test, test,...', 'more']);
+is($p->header('X-Meta-Charset'), 'ISO-8859-1');
like($p->header('Link'), qr/<mailto:gisle\@aas.no>/);
# This header should not be present because the head ended
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/HTML-Parser-3.59/TODO new/HTML-Parser-3.60/TODO
--- old/HTML-Parser-3.59/TODO 2008-04-04 10:44:54.000000000 +0200
+++ new/HTML-Parser-3.60/TODO 2009-01-14 20:30:17.000000000 +0100
@@ -2,7 +2,7 @@
- limit the length of markup elements that never end. Perhaps by
configurable limits on the length that markup can have and still
- be recongnized. Report stuff as 'text' when this happens?
+ be recognized. Report stuff as 'text' when this happens?
- remove 255 char limit on literal argspec strings
- implement backslash escapes in literal argspec string
- <![%app1;[...]]> (parameter entities)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package perl-Crypt-CBC for openSUSE:Factory
checked in at Fri Feb 27 16:14:45 CET 2009.
--------
--- perl-Crypt-CBC/perl-Crypt-CBC.changes 2008-06-19 17:09:44.000000000 +0200
+++ /mounts/work_src_done/STABLE/perl-Crypt-CBC/perl-Crypt-CBC.changes 2009-02-27 15:46:10.000000000 +0100
@@ -1,0 +2,6 @@
+Fri Feb 27 10:47:24 CET 2009 - anicka(a)suse.cz
+
+- update to 2.30
+ * setting $cipher correctly
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
Crypt-CBC-2.29.tar.bz2
New:
----
Crypt-CBC-2.30.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Crypt-CBC.spec ++++++
--- /var/tmp/diff_new_pack.D26108/_old 2009-02-27 16:14:41.000000000 +0100
+++ /var/tmp/diff_new_pack.D26108/_new 2009-02-27 16:14:41.000000000 +0100
@@ -1,10 +1,17 @@
#
-# spec file for package perl-Crypt-CBC (Version 2.29)
+# spec file for package perl-Crypt-CBC (Version 2.30)
#
-# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
+# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
@@ -14,14 +21,14 @@
Name: perl-Crypt-CBC
Url: http://cpan.org/modules/by-module/Crypt/
BuildRequires: perl-Crypt-Blowfish perl-Crypt-DES
-Version: 2.29
+Version: 2.30
Release: 1
Requires: perl-Crypt-Blowfish perl-Crypt-DES
Requires: perl = %{perl_version}
AutoReqProv: on
Group: Development/Libraries/Perl
License: Artistic License
-Summary: perl module Crypt::CBC
+Summary: Perl module Crypt::CBC
Source: Crypt-CBC-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -42,7 +49,6 @@
make test
%install
-rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
@@ -58,6 +64,9 @@
/var/adm/perl-modules/%{name}
%changelog
+* Fri Feb 27 2009 anicka(a)suse.cz
+- update to 2.30
+ * setting $cipher correctly
* Thu Jun 19 2008 anicka(a)suse.cz
- update to 2.29
* Fixed errors that occurred when encrypting/decrypting utf8
++++++ Crypt-CBC-2.29.tar.bz2 -> Crypt-CBC-2.30.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Crypt-CBC-2.29/CBC.pm new/Crypt-CBC-2.30/CBC.pm
--- old/Crypt-CBC-2.29/CBC.pm 2008-04-22 16:23:20.000000000 +0200
+++ new/Crypt-CBC-2.30/CBC.pm 2008-09-30 17:11:49.000000000 +0200
@@ -5,7 +5,7 @@
use strict;
use bytes;
use vars qw($VERSION);
-$VERSION = '2.29';
+$VERSION = '2.30';
use constant RANDOM_DEVICE => '/dev/urandom';
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Crypt-CBC-2.29/META.yml new/Crypt-CBC-2.30/META.yml
--- old/Crypt-CBC-2.29/META.yml 2008-04-22 16:25:35.000000000 +0200
+++ new/Crypt-CBC-2.30/META.yml 2008-09-30 17:16:22.000000000 +0200
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: Crypt-CBC
-version: 2.29
+version: 2.30
abstract: ~
license: ~
author: ~
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Crypt-CBC-2.29/t/preexisting.t new/Crypt-CBC-2.30/t/preexisting.t
--- old/Crypt-CBC-2.29/t/preexisting.t 2006-08-13 04:32:04.000000000 +0200
+++ new/Crypt-CBC-2.30/t/preexisting.t 2008-09-30 17:14:29.000000000 +0200
@@ -15,7 +15,7 @@
for my $mod (@mods) {
if (eval "use Crypt::$mod(); 1") {
- $cipherclass = "Crypt::$mod";
+ $cipherclass = $mod eq 'IDEA' ? $mod : "Crypt::$mod";
warn "Using $cipherclass for test\n";
last;
}
@@ -49,7 +49,8 @@
my $ks = eval{$cipherclass->keysize} || $bs;
my $key = Crypt::CBC->_get_random_bytes($ks);
-my $cipher = $cipherclass eq 'Crypt::Eksblowfish' ? $cipherclass->new(8,Crypt::CBC->_get_random_bytes(16),$key) : $cipherclass->new($key);
+my $cipher = $cipherclass eq 'Crypt::Eksblowfish' ? $cipherclass->new(8,Crypt::CBC->_get_random_bytes(16),$key)
+ :$cipherclass->new($key);
test(2,$i = Crypt::CBC->new(-cipher=>$cipher),"Couldn't create new object");
test(3,$c = $i->encrypt($test_data),"Couldn't encrypt");
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package libzypp for openSUSE:Factory
checked in at Fri Feb 27 16:14:27 CET 2009.
--------
--- libzypp/libzypp.changes 2009-02-23 17:20:40.000000000 +0100
+++ /mounts/work_src_done/STABLE/libzypp/libzypp.changes 2009-02-26 14:48:11.000000000 +0100
@@ -1,0 +2,10 @@
+Thu Feb 26 13:49:56 CET 2009 - ma(a)suse.de
+
+- Use correct default for zconfig(solver.checkSystemFile) (bnc# 475144)
+
+-------------------------------------------------------------------
+Thu Feb 26 01:25:33 CET 2009 - ma(a)suse.de
+
+- Prevent ResStatus from overriding user locks. (bnc #475230)
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libzypp.spec ++++++
--- /var/tmp/diff_new_pack.h23378/_old 2009-02-27 16:14:12.000000000 +0100
+++ /var/tmp/diff_new_pack.h23378/_new 2009-02-27 16:14:12.000000000 +0100
@@ -25,7 +25,7 @@
AutoReqProv: on
Summary: Package, Patch, Pattern, and Product Management
Version: 6.1.0
-Release: 1
+Release: 2
Source: libzypp-6.1.0.tar.bz2
Source1: libzypp-rpmlintrc
Prefix: /usr
@@ -120,6 +120,12 @@
make %{?jobs:-j %jobs} VERBOSE=1
make -C doc/autodoc %{?jobs:-j %jobs}
make -C po %{?jobs:-j %jobs} translations
+%if 0%{?run_testsuite}
+ make -C tests %{?jobs:-j %jobs}
+ pushd tests
+ ctest -A
+ popd
+%endif
#make check
%install
@@ -239,6 +245,10 @@
%{_libdir}/pkgconfig/libzypp.pc
%changelog
+* Thu Feb 26 2009 ma(a)suse.de
+- Use correct default for zconfig(solver.checkSystemFile) (bnc# 475144)
+* Thu Feb 26 2009 ma(a)suse.de
+- Prevent ResStatus from overriding user locks. (bnc #475230)
* Sun Feb 22 2009 ma(a)suse.de
- Never refresh repositories from CD/DVD, once they are created. (bnc #476429)
* Sat Feb 21 2009 dmacvicar(a)suse.de
++++++ libzypp-6.1.0.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/devel/devel.ma/CMakeLists.txt new/libzypp-6.1.0/devel/devel.ma/CMakeLists.txt
--- old/libzypp-6.1.0/devel/devel.ma/CMakeLists.txt 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/devel/devel.ma/CMakeLists.txt 2009-02-27 01:50:42.000000000 +0100
@@ -15,31 +15,26 @@
#)
ENDIF( NOT QT_FOUND )
+SET(THREAD_LIBRARY boost_thread-mt)
+
## ############################################################
-ADD_CUSTOM_TARGET( ma_test
+ADD_CUSTOM_TARGET( ma_test ALL
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ma_test
COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/ma_test ${CMAKE_CURRENT_BINARY_DIR}/ma_test
)
## ############################################################
-FOREACH( loop_var MaTest NewPool DumpSolv Iorder Xml Ex Main FakePool AOUT Parse Test Basic Sat TransList)
- ADD_EXECUTABLE( ${loop_var}
- ${loop_var}.cc
- )
- TARGET_LINK_LIBRARIES( ${loop_var}
- zypp
- )
-ENDFOREACH( loop_var )
-
-
-FOREACH( loop_var ToolScanRepos ToolProvideSignedDir)
+FILE( GLOB ALLCC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.cc" )
+STRING( REPLACE ".cc" ";" APLLPROG ${ALLCC} )
+FOREACH( loop_var ${APLLPROG} )
ADD_EXECUTABLE( ${loop_var}
${loop_var}.cc
)
TARGET_LINK_LIBRARIES( ${loop_var}
- zypp
+ boost_signals
+#zypp ${THREAD_LIBRARY}
)
ENDFOREACH( loop_var )
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/devel/devel.ma/DumpSolv.cc new/libzypp-6.1.0/devel/devel.ma/DumpSolv.cc
--- old/libzypp-6.1.0/devel/devel.ma/DumpSolv.cc 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/devel/devel.ma/DumpSolv.cc 2009-02-27 01:50:42.000000000 +0100
@@ -1,38 +1,325 @@
-#include <iostream>
-#include <zypp/base/LogTools.h>
-#include <zypp/base/Easy.h>
-#include <zypp/sat/Pool.h>
-
-using std::endl;
-using std::cout;
-using namespace zypp;
+#include "Tools.h"
+#include <zypp/ResObjects.h>
+#include <zypp/ProgressData.h>
+#include <zypp/sat/WhatObsoletes.h>
+#include "zypp/pool/GetResolvablesToInsDel.h"
+
+///////////////////////////////////////////////////////////////////
+#include "zypp/parser/xml/ParseDef.h"
+#include "zypp/parser/xml/ParseDefConsume.h"
+#include "zypp/parser/xml/Reader.h"
+namespace zypp
+{
+ namespace xml
+ {
+ namespace parsedefassign
+ {
+ template <class _Type> struct Assigner;
+
+ /** Common interface to all Assigner. */
+ template <>
+ struct Assigner<void>
+ {
+ virtual ~Assigner()
+ {}
+ virtual void assign( const char * text_r )
+ {}
+ };
+
+ /** Assigner assigns text to types constructible from \c char*. */
+ template <class _Type>
+ struct Assigner : public Assigner<void>
+ {
+ Assigner(_Type & value_r )
+ : _value( &value_r )
+ {}
+
+ virtual void assign( const char * text_r )
+ { *_value = _Type( text_r ); }
+
+ private:
+ _Type * _value;
+ };
+
+ /** \name Assigner specialisation for numeric and boolean values.
+ * \relates Assigner
+ */
+ //@{
+ template <>
+ inline void Assigner<short>::assign( const char * text_r ) { str::strtonum( text_r, *_value ); }
+ template <>
+ inline void Assigner<int>::assign( const char * text_r ) { str::strtonum( text_r, *_value ); }
+ template <>
+ inline void Assigner<long>::assign( const char * text_r ) { str::strtonum( text_r, *_value ); }
+ template <>
+ inline void Assigner<long long>::assign( const char * text_r ) { str::strtonum( text_r, *_value ); }
+ template <>
+ inline void Assigner<unsigned short>::assign( const char * text_r ) { str::strtonum( text_r, *_value ); }
+ template <>
+ inline void Assigner<unsigned>::assign( const char * text_r ) { str::strtonum( text_r, *_value ); }
+ template <>
+ inline void Assigner<unsigned long>::assign( const char * text_r ) { str::strtonum( text_r, *_value ); }
+ template <>
+ inline void Assigner<unsigned long long>::assign( const char * text_r ) { str::strtonum( text_r, *_value ); }
+ template <>
+ inline void Assigner<bool>::assign( const char * text_r ) { str::strToBoolNodefault( text_r, *_value ); }
+ //@}
+ }
+
+ struct ParseDefAssignConsumer : public ParseDefConsume
+ {
+ virtual void start( const Node & node_r )
+ {}
+
+ virtual void text( const Node & node_r )
+ {}
+ };
+
+ struct ParseDefAssign
+ {
+ template <class _Type>
+ ParseDefAssign( _Type & value_r )
+ {}
+
+ operator const shared_ptr<ParseDefAssignConsumer> &() const
+ { return _ptr; }
+
+ private:
+ shared_ptr<ParseDefAssignConsumer> _ptr;
+ };
+
+ }
+
+ /** Parse \c input_r and store data in \c data_r.
+ *
+ * \c _Data must be defaultconstructible and assignable.
+ *
+ * \c _Data::RootNode must be a \ref xml::ParseDef constructible
+ * from \c _Data&.
+ *
+ * \throws ParseDefException on parse errors.
+ *
+ * To parse a xml file like this:
+ * \code
+ * <test><setup>value</setup></test>
+ * \endcode
+ *
+ * You need something like this:
+ * \code
+ * struct XmlData
+ * {
+ * std::string value;
+
+ * public:
+ * // Convenience parsing to *this.
+ * void parse( const Pathname & path_r )
+ * { rnParse( path_r, *this ); }
+
+ * public:
+ * // Parser description
+ * struct RootNode : public xml::ParseDef, public xml::ParseDefConsume
+ * {
+ * RootNode( XmlData & data )
+ * : ParseDef( "test", MANDTAORY )
+ * {
+ * (*this)
+ * ("setup", MANDTAORY, xml::parseDefAssignText( data.value ) )
+ * ;
+ * }
+ * };
+ * };
+ *
+ * XmlData xmlData;
+ * xmlData.parse( "/tmp/mytest.xml" );
+ * \endcode
+ */
+ template<class _Data>
+ inline void rnParse( const InputStream & input_r, _Data & data_r )
+ {
+ typedef typename _Data::RootNode RootNode;
+ MIL << "+++ " << input_r << endl;
+ _Data pdata;
+ try
+ {
+ xml::Reader reader( input_r );
+ RootNode rootNode( pdata );
+ rootNode.take( reader );
+ }
+ catch ( const Exception & err )
+ {
+ // parse error
+ ERR << err << endl;
+ ERR << "--- " << input_r << endl;
+ ZYPP_RETHROW( err );
+ }
+ MIL << "--- " << input_r << endl;
+ data_r = pdata;
+ }
+
+ struct SolverTestXml
+ {
+ public:
+ struct Chanel
+ {
+ Chanel() : priority( RepoInfo::defaultPriority() ) {}
+ std::string file;
+ std::string alias;
+ unsigned priority;
+ };
+
+ Arch systemArch;
+ Locale systemLocale;
+ std::string systemFile;
+ std::list<Chanel> chanelList;
+
+ public:
+ /** Convenience parsing to \c this, appending \c "solver-test.xml" to directories. */
+ void parse( const Pathname & path_r )
+ { rnParse( (PathInfo(path_r).isDir() ? path_r/"solver-test.xml" : path_r ), *this ); }
+
+ public:
+ struct RootNode : public xml::ParseDef, public xml::ParseDefConsume
+ {
+ RootNode( SolverTestXml & data )
+ : ParseDef( "test", MANDTAORY, xml::parseDefAssignText( data.systemFile ) )
+ {
+ (*this)
+ ("setup", MANDTAORY, xml::parseDefAssign( data.systemArch ) )
+ ;
+ }
+ };
+ };
+}
+///////////////////////////////////////////////////////////////////
+
+static std::string appname( __FILE__ );
+
+void message( const std::string & msg_r )
+{
+ cerr << "*** " << msg_r << endl;
+}
+
+int usage( const std::string & msg_r = std::string(), int exit_r = 100 )
+{
+ if ( ! msg_r.empty() )
+ {
+ cerr << endl;
+ message( msg_r );
+ cerr << endl;
+ }
+ cerr << "Usage: " << appname << " TESTCASE" << endl;
+ cerr << " Load and process testcase." << endl;
+ return exit_r;
+}
+
+///////////////////////////////////////////////////////////////////
+
+bool progressReceiver( const ProgressData & v )
+{
+ DBG << "...->" << v << endl;
+ return true;
+}
+
+///////////////////////////////////////////////////////////////////
+
+bool upgrade()
+{
+ bool rres = false;
+ {
+ zypp::base::LogControl::TmpLineWriter shutUp;
+ UpgradeStatistics u;
+ rres = getZYpp()->resolver()->doUpgrade( u );
+ }
+ if ( ! rres )
+ {
+ ERR << "upgrade " << rres << endl;
+ getZYpp()->resolver()->problems();
+ return false;
+ }
+ MIL << "upgrade " << rres << endl;
+ return true;
+}
+
+bool solve()
+{
+ static unsigned run = 0;
+ USR << "Solve " << run++ << endl;
+ bool rres = false;
+ {
+ zypp::base::LogControl::TmpLineWriter shutUp;
+ rres = getZYpp()->resolver()->resolvePool();
+ }
+ if ( ! rres )
+ {
+ ERR << "resolve " << rres << endl;
+ getZYpp()->resolver()->problems();
+ return false;
+ }
+
+ return true;
+}
+
+///////////////////////////////////////////////////////////////////
/******************************************************************
**
** FUNCTION NAME : main
** FUNCTION TYPE : int
*/
-int main( int argc, const char * argv[] )
+int main( int argc, char * argv[] )
{
- --argc; ++argv; // skip arg 0
- sat::Pool satpool( sat::Pool::instance() );
+ INT << "===[START]==========================================" << endl;
+ appname = Pathname::basename( argv[0] );
+ --argc;
+ ++argv;
+
+ ///////////////////////////////////////////////////////////////////
- for ( ; argc; --argc, ++argv )
+ Pathname mtest( "/suse/ma/BUGS/472099/zypper.solverTestCase" );
+ Arch march( Arch_i686 );
+
+ while ( argc )
{
- cout << "Read: " << argv[0] << endl;
- satpool.addRepoSolv( argv[0] );
+ --argc;
+ ++argv;
}
- cout << "Done: " << satpool << endl;
+ if ( mtest.empty() )
+ {
+ return usage( "Missing Testcase", 102 );
+ }
+
+ ///////////////////////////////////////////////////////////////////
+
+ //xml::ParseDef::_debug = true;
+ SolverTestXml solvertest;
+ solvertest.parse( mtest );
+ USR << solvertest.systemFile << endl;
+ USR << solvertest.systemArch << endl;
+
+ INT << "===[END]============================================" << endl << endl;
+ return 0;
+
+ TestSetup test( march );
+ ResPool pool( test.pool() );
+ sat::Pool satpool( test.satpool() );
- if ( true || getenv("VERBOSE") )
{
- for_( it, satpool.solvablesBegin(), satpool.solvablesEnd() )
- {
- cout << dump(*it) << endl;
- }
+ //zypp::base::LogControl::TmpLineWriter shutUp;
+ test.loadTarget();
+ test.loadTestcaseRepos( mtest ); // <<< repos
}
+ test.poolProxy().saveState();
+ {
+ //zypp::base::LogControl::TmpLineWriter shutUp;
+ upgrade();
+ }
+ vdumpPoolStats( USR << "Transacting:"<< endl,
+ make_filter_begin<resfilter::ByTransact>(pool),
+ make_filter_end<resfilter::ByTransact>(pool) ) << endl;
+
+ INT << "===[END]============================================" << endl << endl;
+ zypp::base::LogControl::TmpLineWriter shutUp;
return 0;
}
-
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/devel/devel.ma/ma_test new/libzypp-6.1.0/devel/devel.ma/ma_test
--- old/libzypp-6.1.0/devel/devel.ma/ma_test 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/devel/devel.ma/ma_test 2009-02-27 01:50:42.000000000 +0100
@@ -5,7 +5,7 @@
PRG=Main
SUDO=
if [ "$1" = -su ]; then
- SUDO=sudo
+ SUDO="sudo -E"
shift
fi
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/devel/devel.ma/Sat.cc new/libzypp-6.1.0/devel/devel.ma/Sat.cc
--- old/libzypp-6.1.0/devel/devel.ma/Sat.cc 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/devel/devel.ma/Sat.cc 2009-02-27 01:50:42.000000000 +0100
@@ -1,12 +1,17 @@
-extern "C"
+#include <iostream>
+
+#include <boost/thread.hpp>
+#include <boost/thread/thread_time.hpp>
+namespace boost
{
-#include <stdio.h>
-#include <satsolver/pool.h>
-#include <satsolver/repo_solv.h>
+ namespace detail
+ {
+ inline std::ostream & operator<<( std::ostream & str, const thread_data_base & obj )
+ { return str << &obj; }
+ }
}
-#include <cstdio>
-#include <iostream>
+#include "zypp/ByteCount.h"
#include "zypp/Pathname.h"
#include "zypp/base/Logger.h"
#include "zypp/base/LogControl.h"
@@ -14,36 +19,100 @@
using std::endl;
using namespace zypp;
+#undef MIL
+#define MIL MilSync( _BASEFILE, __FUNCTION__, __LINE__ )._str
+
+#ifdef _REENTRANT
+#warning _REENTRANT
+#else
+#warning NOT_REENTRANT
+#endif
+
+template <class Derived>
+struct ClassLevelLockable
+{
+ typedef boost::recursive_mutex Lockable;
+
+ typedef boost::lock_guard<Lockable> Lock;
+ struct Lock
+ {
+ Lock( const Derived & obj )
+ {}
+ ~Lock
+ };
+
+ Lockable _mutex;
+};
+
+template <class Derived>
+struct ObjectLevelLockable
+{
+ typedef boost::recursive_mutex Lockable;
+ typedef boost::lock_guard<Lockable> Lock;
+
+};
+
+
+struct MilSync
+{
+ MilSync( const char * file_r, const char * func_r, const int line_r )
+ : _guard( _mutex )
+ , _str( zypp::base::logger::getStream( ZYPP_BASE_LOGGER_LOGGROUP, zypp::base::logger::E_MIL, file_r, func_r, line_r ) )
+ {}
+ typedef boost::recursive_mutex Lockable;
+ static Lockable _mutex;
+ boost::lock_guard<Lockable> _guard;
+ std::ostream & _str;
+};
+MilSync::Lockable MilSync::_mutex;
+
+struct ThreadExcl
+{
+ ThreadExcl()
+ {
+ MIL << "+TE" << boost::this_thread::get_id() << endl;
+ boost::this_thread::sleep( boost::posix_time::seconds(1) );
+ }
+
+ ~ThreadExcl()
+ {
+ MIL << "-TE" << boost::this_thread::get_id() << endl;
+ }
+};
+
+void t_exit()
+{
+ MIL << "---" << boost::this_thread::get_id() << endl;
+}
+
+void t_main()
+{
+ MIL << "+++" << boost::this_thread::get_id() << " " << boost::this_thread::interruption_enabled() << endl;
+ boost::this_thread::at_thread_exit( t_exit );
+ ThreadExcl a;
+ while( true )
+ boost::this_thread::sleep( boost::posix_time::seconds(1) );
+}
+
int main( int argc, char * argv[] )
{
//zypp::base::LogControl::instance().logfile( "log.restrict" );
INT << "===[START]==========================================" << endl;
- ::_Pool * _pool = ::pool_create();
-
- Pathname p;
+ MIL << "M+++" << boost::this_thread::get_id() << endl;
+ boost::thread_group mthreads;
- p = "sl10.1-beta7-selections.solv";
- FILE * file = ::fopen( p.c_str(), "r" );
- ::pool_addrepo_solv( _pool, file, p.c_str() );
- ::fclose( file );
-
- p = "1234567890.solv";
- file = ::fopen( p.c_str(), "r" );
- ::pool_addrepo_solv( _pool, file, p.c_str() );
- ::fclose( file );
-
- p = "sl10.1-beta7-packages.solv";
- file = ::fopen( p.c_str(), "r" );
- ::pool_addrepo_solv( _pool, file, p.c_str() );
- ::fclose( file );
-
- ::_Pool & pool( *_pool );
-
- MIL << _pool->nrepos << endl;
- MIL << (void*)(*pool.repos) << " " << (*pool.repos)->name << endl;
- MIL << (void*)(*(pool.repos+1)) << " " << (*(pool.repos+1))->name << endl;
- MIL << (void*)(*(pool.repos+2)) << " " << (*(pool.repos+2))->name << endl;
+ mthreads.create_thread( t_main );
+ mthreads.create_thread( t_main );
+ mthreads.create_thread( t_main );
+ mthreads.create_thread( t_main );
+ mthreads.create_thread( t_main );
+
+ MIL << "M???" << boost::this_thread::get_id() << endl;
+ //boost::this_thread::sleep( boost::posix_time::seconds(10) );
+ mthreads.interrupt_all();
+ mthreads.join_all();
+ MIL << "M---" << boost::this_thread::get_id() << endl;
///////////////////////////////////////////////////////////////////
INT << "===[END]============================================" << endl << endl;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/devel/devel.ma/SigTrackableFail.cc new/libzypp-6.1.0/devel/devel.ma/SigTrackableFail.cc
--- old/libzypp-6.1.0/devel/devel.ma/SigTrackableFail.cc 1970-01-01 01:00:00.000000000 +0100
+++ new/libzypp-6.1.0/devel/devel.ma/SigTrackableFail.cc 2009-02-27 01:50:42.000000000 +0100
@@ -0,0 +1,133 @@
+#include <iostream>
+using std::endl;
+using std::cout;
+
+#include <boost/signal.hpp>
+#include <boost/bind.hpp>
+using boost::signal;
+using boost::signals::connection;
+using boost::signals::scoped_connection;
+using boost::signals::trackable;
+
+#define DBG std::cerr
+#define MIL std::cerr
+namespace boost
+{
+ template<class Tp>
+ std::ostream & operator<<( std::ostream & str, const signal<Tp> & obj )
+ {
+ return str << "Connected slots: " << obj.num_slots();
+ }
+
+ namespace signals
+ {
+ std::ostream & operator<<( std::ostream & str, const connection & obj )
+ {
+ return str << "Connection: "
+ << ( obj.connected() ? '*' : '_' )
+ << ( obj.blocked() ? 'B' : '_' )
+ ;
+ }
+ }
+}
+
+struct Sender
+{
+ void ping() const
+ {
+ static unsigned i = 0;
+ ++i;
+ MIL << "Sending " << i << " -> " << _sigA << endl;
+ _sigA( i );
+ _sigB();
+ }
+
+ typedef signal<void(unsigned)> SigA;
+ typedef signal<void(void)> SigB;
+
+ SigA & siga() const { return _sigA; }
+ SigB & sigb() const { return _sigB; }
+
+ mutable SigA _sigA;
+ mutable SigB _sigB;
+};
+
+struct Receiver : public trackable
+{
+ Receiver() {_s=++s;}
+ Receiver( const Receiver & rhs ) : trackable( rhs ) {_s=++s;}
+ Receiver& operator=( const Receiver & rhs ) {
+ trackable::operator=( rhs );
+ return *this;
+ }
+ ~Receiver() {_s=-_s;}
+ static int s;
+ int _s;
+
+ void fpong()
+ {
+ dumpOn( DBG << "Receiver " << _s << " <- " << 13 << " (" ) << ")" << endl;
+ }
+
+ void operator()( unsigned i )
+ { pong( i ); }
+
+ void pong( unsigned i )
+ {
+ dumpOn( DBG << "Receiver " << _s << " <- " << i << " (" ) << ")" << endl;
+ }
+
+ std::ostream & dumpOn( std::ostream & str ) const
+ {
+ return str << "Receiver " << _s << " connected signals: " << _connected_signals().size();
+ }
+};
+
+std::ostream & operator<<( std::ostream & str, const Receiver & obj )
+{ return obj.dumpOn( str ); }
+
+int Receiver::s;
+
+/******************************************************************
+**
+** FUNCTION NAME : main
+** FUNCTION TYPE : int
+*/
+int main( int argc, const char * argv[] )
+{
+ --argc; ++argv; // skip arg 0
+
+ Sender sender;
+ sender.ping();
+
+ Receiver rec;
+ sender.siga().connect( boost::bind( &Receiver::pong, &rec, _1 ) );
+ sender.ping();
+
+ {
+ Receiver recw;
+ sender.siga().connect( boost::ref(recw) );
+ sender.ping();
+
+ Receiver recx;
+ MIL << recx << endl;
+ sender.siga().connect( boost::bind( &Receiver::pong, &recx, _1 ) );
+ sender.sigb().connect( boost::bind( &Receiver::fpong, &recx ) );
+ MIL << recx << endl;
+ sender.ping();
+
+ Receiver recy;
+ connection cy( sender.siga().connect( boost::bind( &Receiver::pong, &recy, _1 ) ) );
+ sender.ping();
+
+ Receiver recz;
+ scoped_connection cz( sender.siga().connect( boost::bind( &Receiver::pong, &recz, _1 ) ) );
+ sender.ping();
+
+ cy.disconnect();
+ }
+
+ sender.ping();
+ return 0;
+}
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/libzypp.spec.cmake new/libzypp-6.1.0/libzypp.spec.cmake
--- old/libzypp-6.1.0/libzypp.spec.cmake 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/libzypp.spec.cmake 2009-02-27 01:50:42.000000000 +0100
@@ -119,6 +119,13 @@
make -C doc/autodoc %{?jobs:-j %jobs}
make -C po %{?jobs:-j %jobs} translations
+%if 0%{?run_testsuite}
+ make -C tests %{?jobs:-j %jobs}
+ pushd tests
+ ctest -A
+ popd
+%endif
+
#make check
%install
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/package/libzypp.changes new/libzypp-6.1.0/package/libzypp.changes
--- old/libzypp-6.1.0/package/libzypp.changes 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/package/libzypp.changes 2009-02-27 01:50:42.000000000 +0100
@@ -1,4 +1,14 @@
-------------------------------------------------------------------
+Thu Feb 26 13:49:56 CET 2009 - ma(a)suse.de
+
+- Use correct default for zconfig(solver.checkSystemFile) (bnc# 475144)
+
+-------------------------------------------------------------------
+Thu Feb 26 01:25:33 CET 2009 - ma(a)suse.de
+
+- Prevent ResStatus from overriding user locks. (bnc #475230)
+
+-------------------------------------------------------------------
Sun Feb 22 15:27:11 CET 2009 - ma(a)suse.de
- Never refresh repositories from CD/DVD, once they are created. (bnc #476429)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/tests/lib/TestSetup.h new/libzypp-6.1.0/tests/lib/TestSetup.h
--- old/libzypp-6.1.0/tests/lib/TestSetup.h 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/tests/lib/TestSetup.h 2009-02-27 01:50:42.000000000 +0100
@@ -29,6 +29,8 @@
#define BOOST_CHECK_NE( L, R ) BOOST_CHECK( (L) != (R) )
#endif
+#define LABELED(V) #V << ":\t" << V
+
enum TestSetupOptionBits
{
TSO_CLEANROOT = (1 << 0)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/tests/lib/WebServer.cc new/libzypp-6.1.0/tests/lib/WebServer.cc
--- old/libzypp-6.1.0/tests/lib/WebServer.cc 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/tests/lib/WebServer.cc 2009-02-27 01:50:42.000000000 +0100
@@ -160,6 +160,12 @@
virtual void start()
{
+ if ( ! _stopped )
+ {
+ MIL << "mongoose server already running, stopping." << endl;
+ stop();
+ }
+
MIL << "Starting shttpd (mongoose)" << endl;
_log.clear();
_ctx = mg_start();
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/tests/parser/ProductFileReader_test.cc new/libzypp-6.1.0/tests/parser/ProductFileReader_test.cc
--- old/libzypp-6.1.0/tests/parser/ProductFileReader_test.cc 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/tests/parser/ProductFileReader_test.cc 2009-02-27 01:50:42.000000000 +0100
@@ -1,8 +1,6 @@
#include "TestSetup.h"
#include <zypp/parser/ProductFileReader.h>
-#define LABELED(V) #V << ":\t" << V
-
//static TestSetup test( Arch_x86_64 );
// Must be the first test!
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/tests/sat/LookupAttr_test.cc new/libzypp-6.1.0/tests/sat/LookupAttr_test.cc
--- old/libzypp-6.1.0/tests/sat/LookupAttr_test.cc 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/tests/sat/LookupAttr_test.cc 2009-02-27 01:50:42.000000000 +0100
@@ -2,8 +2,6 @@
#include <zypp/sat/LookupAttr.h>
#include <zypp/ResObjects.h>
-#define LABELED(V) #V << ":\t" << V
-
static TestSetup test( "/tmp/x", Arch_x86_64 );
// Must be the first test!
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/tests/sat/WhatObsoletes_test.cc new/libzypp-6.1.0/tests/sat/WhatObsoletes_test.cc
--- old/libzypp-6.1.0/tests/sat/WhatObsoletes_test.cc 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/tests/sat/WhatObsoletes_test.cc 2009-02-27 01:50:42.000000000 +0100
@@ -1,8 +1,6 @@
#include "TestSetup.h"
#include <zypp/sat/WhatObsoletes.h>
-#define LABELED(V) #V << ":\t" << V
-
namespace zypp
{
namespace sat
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/tests/sat/WhatProvides_test.cc new/libzypp-6.1.0/tests/sat/WhatProvides_test.cc
--- old/libzypp-6.1.0/tests/sat/WhatProvides_test.cc 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/tests/sat/WhatProvides_test.cc 2009-02-27 01:50:42.000000000 +0100
@@ -1,7 +1,5 @@
#include "TestSetup.h"
-#define LABELED(V) #V << ":\t" << V
-
BOOST_AUTO_TEST_CASE(WhatProvides)
{
TestSetup test( Arch_x86_64 );
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/tests/zypp/ResStatus_test.cc new/libzypp-6.1.0/tests/zypp/ResStatus_test.cc
--- old/libzypp-6.1.0/tests/zypp/ResStatus_test.cc 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/tests/zypp/ResStatus_test.cc 2009-02-27 01:50:42.000000000 +0100
@@ -3,75 +3,126 @@
#define BOOST_TEST_MODULE ResStatus
-BOOST_AUTO_TEST_CASE(ResStatus_default)
+template<class _Tp, int N>
+inline _Tp * begin( _Tp (& _array)[N] ) { return _array; }
+
+template<class _Tp, int N>
+inline _Tp * end( _Tp (& _array)[N] ) { return _array + (sizeof(_array)/sizeof(_Tp)); }
+
+ResStatus::TransactByValue transactByValues[] = {
+ ResStatus::USER, ResStatus::APPL_HIGH, ResStatus::APPL_LOW, ResStatus::SOLVER
+};
+
+ResStatus::TransactValue transactValues[] = {
+ ResStatus::TRANSACT, ResStatus::KEEP_STATE, ResStatus::LOCKED
+};
+
+bool transactTo[] = { true, false };
+
+BOOST_AUTO_TEST_CASE(Default)
{
-#if 0
{
ResStatus s;
BOOST_CHECK( s.isUninstalled() );
BOOST_CHECK_EQUAL( s.isInstalled(), ! s.isUninstalled() );
- BOOST_CHECK_EQUAL( s.getTransactValue(), KEEP_STATE );
- BOOST_CHECK_EQUAL( s.getTransactByValue(), SOLVER );
+ BOOST_CHECK_EQUAL( s.getTransactValue(), ResStatus::KEEP_STATE );
+ BOOST_CHECK_EQUAL( s.getTransactByValue(), ResStatus::SOLVER );
}
{
ResStatus s( true );
- BOOST_CHECK( s.Installed() );
+ BOOST_CHECK( s.isInstalled() );
BOOST_CHECK_EQUAL( s.isInstalled(), ! s.isUninstalled() );
- BOOST_CHECK_EQUAL( s.getTransactValue(), KEEP_STATE );
- BOOST_CHECK_EQUAL( s.getTransactByValue(), SOLVER );
+ BOOST_CHECK_EQUAL( s.getTransactValue(), ResStatus::KEEP_STATE );
+ BOOST_CHECK_EQUAL( s.getTransactByValue(), ResStatus::SOLVER );
}
-#endif
}
-#if 0
-
-// enum TransactValue
-// {
-// KEEP_STATE = bit::RangeValue<TransactField,0>::value,
-// LOCKED = bit::RangeValue<TransactField,1>::value, // locked, must not transact
-// TRANSACT = bit::RangeValue<TransactField,2>::value // transact according to state
-// };
-// enum TransactByValue
-// {
-// SOLVER = bit::RangeValue<TransactByField,0>::value,
-// APPL_LOW = bit::RangeValue<TransactByField,1>::value,
-// APPL_HIGH = bit::RangeValue<TransactByField,2>::value,
-// USER = bit::RangeValue<TransactByField,3>::value
-// };
-ResStatus doTestSet( TransactValue tv, TransactByValue tb )
-{
- ResStatus s;
- s.setTransactValue( tv, tb );
- BOOST_CHECK_EQUAL( getTransactValue( s ), tv );
- BOOST_CHECK_EQUAL( getTransactByValue( s ), tb );
-}
+// Status transition like setTransact, setLock, setSoftTransact
+typedef bool (ResStatus::* Transition)( bool, ResStatus::TransactByValue );
+// Result evaluation
+typedef void (* Evaluate)( ResStatus::TransactValue, ResStatus::TransactByValue, /* fromState, fromBy */
+ bool, ResStatus::TransactByValue, /* toState, toBy */
+ bool, ResStatus ); /* done, result */
-BOOST_AUTO_TEST_CASE(ResStatus)
+void testTable( Transition transition, Evaluate evaluate )
{
- std::vector<TransactValue> TVs;
- TVs.push_back( KEEP_STATE );
- TVs.push_back( LOCKED );
- TVs.push_back( TRANSACT );
-
- std::vector<TransactByValue> TBs;
- TBs.push_back( SOLVER );
- TBs.push_back( APPL_LOW );
- TBs.push_back( APPL_HIGH );
- TBs.push_back( USER );
-
- for_( tv, TVs.begin(), TVs end() )
+ // Table: For each causer combination (fromBy -> toBy) invoke transition:
+ //
+ // bool ok = ResStatus(fromState,fromBy).transition( toState, toBy )
+ //
+ // And evaluate the result.
+ //
+ for ( ResStatus::TransactByValue * fromBy = begin( transactByValues ); fromBy != end( transactByValues ); ++fromBy )
{
- for_( tb, TBs.begin(), TBs end() )
+ for ( ResStatus::TransactByValue * toBy = begin( transactByValues ); toBy != end( transactByValues ); ++toBy )
{
- doTestSet
-
+ for ( ResStatus::TransactValue * fromState = begin( transactValues ); fromState != end( transactValues ); ++fromState )
+ {
+ for ( bool * toState = begin( transactTo ); toState != end( transactTo ); ++toState )
+ {
+ ResStatus from;
+ from.setTransactValue( *fromState, *fromBy ); // NEEDS FIX!
+
+ ResStatus result( from );
+ bool done = (result.*transition)( *toState, *toBy );
+
+ evaluate( *fromState, *fromBy, *toState, *toBy, done, result );
+ }
+ }
}
}
+}
+// Transitions succeeds always:
+#define CHECK_DONE_ALWAYS BOOST_CHECK_EQUAL( done, true )
+// Transitions succeeds if same or higher TransactByValue:
+#define CHECK_DONE_IFCAUSER BOOST_CHECK_EQUAL( done, *toBy >= *fromBy )
+
+void evaluateSetTransact( ResStatus::TransactValue fromState, ResStatus::TransactByValue fromBy,
+ bool toState, ResStatus::TransactByValue toBy,
+ bool done, ResStatus result )
+{
+ ResStatus from;
+ from.setTransactValue( fromState, fromBy );
+ MIL << from << " =setTransact("<<toState<<","<<toBy<<")=>\t" << done << ":" << result << endl;
+ switch ( fromState )
+ {
+ case ResStatus::TRANSACT:
+ if ( toState )
+ {
+ }
+ else
+ {
+ }
+ break;
+ case ResStatus::KEEP_STATE:
+ if ( toState )
+ {
+ }
+ else
+ {
+ }
+ break;
+ case ResStatus::LOCKED:
+ if ( toState )
+ {
+ }
+ else
+ {
+ }
+ break;
+ }
+}
+#if 0
+BOOST_AUTO_TEST_CASE(transition)
+{
+ base::LogControl::TmpLineWriter shutUp( new log::FileLineWriter( "/home/ma/zypp/BUILD/libzypp/devel/devel.ma/LOGFILE" ) );
+ MIL << endl;
+ testTable( &ResStatus::setTransact, &evaluateSetTransact );
}
#endif
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/zypp/Arch.cc new/libzypp-6.1.0/zypp/Arch.cc
--- old/libzypp-6.1.0/zypp/Arch.cc 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/zypp/Arch.cc 2009-02-27 01:50:42.000000000 +0100
@@ -11,6 +11,7 @@
*/
#include <iostream>
#include <list>
+#include <inttypes.h>
#include "zypp/base/Logger.h"
#include "zypp/base/Exception.h"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/zypp/Fetcher.cc new/libzypp-6.1.0/zypp/Fetcher.cc
--- old/libzypp-6.1.0/zypp/Fetcher.cc 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/zypp/Fetcher.cc 2009-02-27 01:50:42.000000000 +0100
@@ -555,7 +555,7 @@
// try to get the file from the net
try
{
- Pathname tmp_file = media.provideFile(resource);
+ Pathname tmp_file = media.provideFile(resource, resource.optional() ? MediaSetAccess::PROVIDE_NON_INTERACTIVE : MediaSetAccess::PROVIDE_DEFAULT );
Pathname dest_full_path = dest_dir + resource.filename();
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/zypp/MediaSetAccess.cc new/libzypp-6.1.0/zypp/MediaSetAccess.cc
--- old/libzypp-6.1.0/zypp/MediaSetAccess.cc 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/zypp/MediaSetAccess.cc 2009-02-27 01:50:42.000000000 +0100
@@ -226,7 +226,7 @@
try
{
- DBG << "Going to try to provide file " << file
+ DBG << "Going to try to provide " << (resource.optional() ? "optional" : "") << " file " << file
<< " from media number " << media_nr << endl;
// try to attach the media
if ( ! media_mgr.isAttached(media) )
@@ -281,6 +281,7 @@
// otherwise propagate the error
if ( ( options & PROVIDE_NON_INTERACTIVE ) && reason != media::MediaChangeReport::WRONG)
{
+ MIL << "Can't provide file. Non-Interactive mode." << endl;
ZYPP_RETHROW(excp);
}
else
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/zypp/repo/susetags/Downloader.cc new/libzypp-6.1.0/zypp/repo/susetags/Downloader.cc
--- old/libzypp-6.1.0/zypp/repo/susetags/Downloader.cc 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/zypp/repo/susetags/Downloader.cc 2009-02-27 01:50:42.000000000 +0100
@@ -52,7 +52,7 @@
Pathname sig = repoInfo().path() + "/content.asc";
- this->enqueue( OnMediaLocation( sig, 1 ) );
+ this->enqueue( OnMediaLocation( sig, 1 ).setOptional(true) );
this->start( dest_dir, media );
// only if there is a signature in the destination directory
if ( PathInfo(dest_dir / sig ).isExist() )
@@ -61,7 +61,7 @@
Pathname key = repoInfo().path() + "/content.key";
- this->enqueue( OnMediaLocation( key, 1 ) );
+ this->enqueue( OnMediaLocation( key, 1 ).setOptional(true) );
this->start( dest_dir, media );
// only if there is a key in the destination directory
if ( PathInfo(dest_dir / key).isExist() )
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/zypp/ResStatus.h new/libzypp-6.1.0/zypp/ResStatus.h
--- old/libzypp-6.1.0/zypp/ResStatus.h 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/zypp/ResStatus.h 2009-02-27 01:50:42.000000000 +0100
@@ -12,6 +12,7 @@
#ifndef ZYPP_RESSTATUS_H
#define ZYPP_RESSTATUS_H
+#include <inttypes.h>
#include <iosfwd>
#include "zypp/Bit.h"
@@ -366,9 +367,9 @@
}
/** Apply a lock (prevent transaction).
- * Currently by USER only, but who knows... Set LOCKED
- * from KEEP_STATE to be shure all transaction details
- * were reset properly.
+ * Currently by USER or APPL_HIGH only, but who knows...
+ * Set LOCKED from KEEP_STATE to be shure all transaction
+ * details were reset properly.
*/
bool setLock( bool toLock_r, TransactByValue causer_r )
{
@@ -381,19 +382,23 @@
return true;
}
// Here: Lock status is to be changed:
- if ( causer_r != USER && causer_r != APPL_HIGH)
- return false;
- // Setting no transact removes an existing lock,
- // or brings this into KEEP_STATE, and we apply the lock.
- if ( ! setTransact( false, causer_r ) )
+ if ( causer_r != USER && causer_r != APPL_HIGH )
return false;
if ( toLock_r ) {
- fieldValueAssign<TransactField>( LOCKED );
- fieldValueAssign<TransactByField>( causer_r );
+ // We're in unlocked state, which includes TRANSACT.
+ // Causer must be allowed to reset this. But from
+ // KEEP_STATE every causer is allowed to set the lock.
+ if ( ! setTransact( false, causer_r ) )
+ return false;
+ fieldValueAssign<TransactField>( LOCKED );
+ fieldValueAssign<TransactByField>( causer_r );
} else {
- fieldValueAssign<TransactField>( KEEP_STATE );
- fieldValueAssign<TransactByField>( SOLVER ); // reset to lowest causer
- // in order to distinguish from keep_state_by_user
+ // To leave Locked state it needs a superior causer.
+ if ( isGreaterThan<TransactByField>( causer_r ) )
+ return false;
+ fieldValueAssign<TransactField>( KEEP_STATE );
+ fieldValueAssign<TransactByField>( SOLVER ); // reset to lowest causer
+ // in order to distinguish from keep_state_by_user
}
return true;
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/zypp/ZConfig.cc new/libzypp-6.1.0/zypp/ZConfig.cc
--- old/libzypp-6.1.0/zypp/ZConfig.cc 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/zypp/ZConfig.cc 2009-02-27 01:50:42.000000000 +0100
@@ -581,7 +581,8 @@
{ return _pimpl->solver_onlyRequires; }
Pathname ZConfig::solver_checkSystemFile() const
- { return _pimpl->solver_checkSystemFile; }
+ { return ( _pimpl->solver_checkSystemFile.empty()
+ ? (configPath()/"systemCheck") : _pimpl->solver_checkSystemFile ); }
std::set<IdString> ZConfig::multiversion() const
{ return _pimpl->multiversion; }
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libzypp-6.1.0/zypp.conf new/libzypp-6.1.0/zypp.conf
--- old/libzypp-6.1.0/zypp.conf 2009-02-23 17:58:00.000000000 +0100
+++ new/libzypp-6.1.0/zypp.conf 2009-02-27 01:50:42.000000000 +0100
@@ -208,10 +208,11 @@
## installed.
## So the user will be informed if these packages will be deleted.
##
-## format: Each line represents one dependency:
-## e.g.
-## requires:kernel
-## requires:glibc
+## Format: Each line represents one dependency:
+## e.g.
+## requires:kernel
+## requires:glibc
+## Default value: {configdir}/systemCheck
##
# solver.checkSystemFile = /etc/zypp/systemCheck
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package libpng12-0 for openSUSE:Factory
checked in at Fri Feb 27 16:14:00 CET 2009.
--------
--- libpng12-0/libpng12-0.changes 2009-01-19 09:22:08.000000000 +0100
+++ /mounts/work_src_done/STABLE/libpng12-0/libpng12-0.changes 2009-02-23 11:23:52.000000000 +0100
@@ -1,0 +2,6 @@
+Mon Feb 23 11:20:10 CET 2009 - pgajdos(a)suse.cz
+
+- fixes possible double free [bnc#472745]
+ (CVE-2009-0040)
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
libpng-1.2.34-setjmp.diff
libpng-1.2.34.tar.bz2
New:
----
libpng-1.2.35-setjmp.diff
libpng-1.2.35.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libpng12-0.spec ++++++
--- /var/tmp/diff_new_pack.p21801/_old 2009-02-27 16:13:06.000000000 +0100
+++ /var/tmp/diff_new_pack.p21801/_new 2009-02-27 16:13:06.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package libpng12-0 (Version 1.2.34)
+# spec file for package libpng12-0 (Version 1.2.35)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -24,7 +24,7 @@
Group: System/Libraries
Url: http://www.libpng.org/pub/png/libpng.html
AutoReqProv: on
-Version: 1.2.34
+Version: 1.2.35
Release: 1
Summary: Library for the Portable Network Graphics Format (PNG)
Source: libpng-%{version}.tar.bz2
@@ -142,6 +142,9 @@
%doc CHANGES README TODO ANNOUNCE KNOWNBUG Y2KINFO LICENSE libpng-*.txt
%changelog
+* Mon Feb 23 2009 pgajdos(a)suse.cz
+- fixes possible double free [bnc#472745]
+ (CVE-2009-0040)
* Mon Jan 19 2009 pgajdos(a)suse.cz
- updated to 1.2.34:
* fixes CVE-2008-3964 (removed CVE-2008-3964.patch)
++++++ libpng-1.2.34-setjmp.diff -> libpng-1.2.35-setjmp.diff ++++++
++++++ libpng-1.2.34.tar.bz2 -> libpng-1.2.35.tar.bz2 ++++++
++++ 7207 lines of diff (skipped)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package libgweather for openSUSE:Factory
checked in at Fri Feb 27 16:12:56 CET 2009.
--------
--- GNOME/libgweather/libgweather.changes 2009-02-17 08:46:58.000000000 +0100
+++ /mounts/work_src_done/STABLE/libgweather/libgweather.changes 2009-02-26 16:24:38.000000000 +0100
@@ -1,0 +2,6 @@
+Thu Feb 26 16:23:49 CET 2009 - vuntz(a)novell.com
+
+- Use find_gconf_schemas instead of some add_gconf_schemas for
+ clarity, but also because we can potentially make it faster.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libgweather.spec ++++++
--- /var/tmp/diff_new_pack.r20993/_old 2009-02-27 16:12:31.000000000 +0100
+++ /var/tmp/diff_new_pack.r20993/_new 2009-02-27 16:12:31.000000000 +0100
@@ -26,7 +26,7 @@
License: GPL v2 or later
Group: Development/Libraries/GNOME
Version: 2.25.91
-Release: 1
+Release: 2
Summary: Library to get online weather information
Source: %{name}-%{version}.tar.bz2
# PATCH-FEATURE-OPENSUSE libgweather-bnc428346-bundle.patch bnc428346 vuntz(a)novell.com -- Support a bundle directory so that bundle-lang-gnome-* doesn't conflict with libgweather-lang.
@@ -94,9 +94,7 @@
ext=`echo $locationsxml | %{__sed} "s/.*Locations\..*\.xml\(.*\)/\1/"`
echo "%lang($lang) %{_datadir}/libgweather/Locations.$lang.xml$ext" >> %{name}.lang
done
-%def_gconf_schemas %{name}
-%add_gconf_schemas gweather
-%end_gconf_schemas
+%find_gconf_schemas
%{__cat} %{name}.schemas_list > %{name}.lst
%{__rm} -f %{buildroot}%{_libdir}/*.la
@@ -136,6 +134,9 @@
%files lang -f %{name}.lang
%changelog
+* Thu Feb 26 2009 vuntz(a)novell.com
+- Use find_gconf_schemas instead of some add_gconf_schemas for
+ clarity, but also because we can potentially make it faster.
* Tue Feb 17 2009 mboman(a)suse.de
- Update to version 2.25.91:
+ Locations.xml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package ivtv for openSUSE:Factory
checked in at Fri Feb 27 16:12:23 CET 2009.
--------
--- ivtv/ivtv.changes 2009-01-09 08:42:51.000000000 +0100
+++ /mounts/work_src_done/STABLE/ivtv/ivtv.changes 2009-02-27 15:05:43.405733000 +0100
@@ -1,0 +2,5 @@
+Fri Feb 27 15:05:34 CET 2009 - ro(a)suse.de
+
+- update to svn to fix build
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
ivtv-utils-1.3.0.tar.bz2
New:
----
ivtv-utils-1.3.0.svn4136.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ivtv.spec ++++++
--- /var/tmp/diff_new_pack.b20258/_old 2009-02-27 16:12:18.000000000 +0100
+++ /var/tmp/diff_new_pack.b20258/_new 2009-02-27 16:12:18.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package ivtv (Version 1.3.0)
+# spec file for package ivtv (Version 1.3.0.svn4136)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -25,8 +25,8 @@
Group: Productivity/Multimedia/Other
AutoReqProv: on
ExclusiveArch: %ix86 ppc ppc64 x86_64
-Version: 1.3.0
-Release: 2
+Version: 1.3.0.svn4136
+Release: 1
Summary: Driver Implementation for iCompression or Conexant Video Capture Cards
Source0: %{name}-utils-%{version}.tar.bz2
Source1: ivtv-firmware.tar.gz
@@ -111,6 +111,8 @@
/lib/firmware/*
%changelog
+* Fri Feb 27 2009 ro(a)suse.de
+- update to svn to fix build
* Fri Jan 09 2009 olh(a)suse.de
- use ExclusiveArch as in /SRC/arch/
* Mon Sep 29 2008 ro(a)suse.de
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package enscript for openSUSE:Factory
checked in at Fri Feb 27 16:12:10 CET 2009.
--------
--- enscript/enscript.changes 2009-02-26 16:09:19.000000000 +0100
+++ /mounts/work_src_done/STABLE/enscript/enscript.changes 2009-02-27 13:12:44.512001593 +0100
@@ -1,0 +2,5 @@
+Fri Feb 27 13:12:12 CET 2009 - werner(a)suse.de
+
+- Make sure that titles including white spaces will be printed
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ enscript.spec ++++++
--- /var/tmp/diff_new_pack.i18845/_old 2009-02-27 16:11:59.000000000 +0100
+++ /var/tmp/diff_new_pack.i18845/_new 2009-02-27 16:11:59.000000000 +0100
@@ -26,7 +26,7 @@
PreReq: %install_info_prereq
AutoReqProv: on
Version: 1.6.4
-Release: 154
+Release: 155
Summary: An ASCII to PostScript(tm) Converter
Source: enscript-%{version}.tar.bz2
Source1: enscript-gs-font.map
@@ -123,6 +123,8 @@
%doc %{_infodir}/%{name}.info.gz
%changelog
+* Fri Feb 27 2009 werner(a)suse.de
+- Make sure that titles including white spaces will be printed
* Thu Feb 26 2009 werner(a)suse.de
- Do not add empty strings to long options without argument e.g.
--color (bnc#478464)
++++++ enscript.sh ++++++
--- /var/tmp/diff_new_pack.i18845/_old 2009-02-27 16:11:59.000000000 +0100
+++ /var/tmp/diff_new_pack.i18845/_new 2009-02-27 16:11:59.000000000 +0100
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# enscript.sh: Simple workaround for getting enscript handling
+# enscript.sh: Workaround for getting enscript handling
# UTF-8 partly. Partly means that iconv is
# used to get the UTF-8 encoding into the
# natural laint encoding of the base language
@@ -9,13 +9,21 @@
# Author: Werner Fink <werner(a)suse.de>
#
+declare -i err cnt opt isf
+declare -a CMDLINE FILES
+
+unset ${!LC_*}
ENC=$(LANG=${LANG%.*}; locale charmap 2> /dev/null)
test "$ENC" = "ISO-8859-1" && ENC=ISO-8859-15
test "${LANG%.*}" = "en_US" && ENC=ISO-8859-1
-case "${ENC%-*}" in
- ISO-8859|KOI8) ;;
- *) exec -a enscript enscript.bin -X $ENC ${1+"$@"}
+case "$@" in
+*-X[[:blank:]]UTF-8*|*--encoding=UTF-8*) ;;
+*) case "${ENC%-*}" in
+ ISO-8859|KOI8) ;;
+ *) exec -a enscript enscript.bin -X $ENC ${1+"$@"} ;;
+ esac
+ ;;
esac
#
@@ -43,55 +51,71 @@
# We need the file names provided on the command line
# or the information if we read from stdin.
#
-CMDLINE=$(getopt -u -o $SHORT -l $LONG -s bash -q -- "$@")
-if test $? -ne 0 ; then
+# Why sed? Just to get the `=' back instead of ` ' the empty space
+# which are inserted by getopt(1) and also the empty space on the
+# short options -C, -e, -E, -H, and -u.
+#
+OIFS="$IFS"; IFS=$'\n'
+CMDLINE=($(getopt -o $SHORT -l $LONG -s bash -q -- "$@" | \
+ LC_ALL=POSIX sed -r '
+ s|--([a-z-]+) ?([^-])|--\1=\2|g
+ s|-([CeEHu]) ?([^-])|-\1\2|g
+ s|=([[:space:]]+)|\1|g
+ s|-X[[:blank:]]*[[:punct:]]UTF-8[[:punct:]]||g
+ s|[[:punct:]]-[[:punct:]]|-|g
+ s|--[[:blank:]]|--\n|
+ s|[[:blank:]]-|\n-|g
+ '
+ test ${PIPESTATUS[0]} -eq 0 || exit 1
+))
+let err=$?
+IFS="$OIFS"
+
+if test $err -ne 0 ; then
# Let enscript do the error message
exec -a enscript enscript.bin ${1+"$@"}
fi
+let isf=0
+let opt=1
+while ((opt<${#CMDLINE[@]})) ; do
+ arg="${CMDLINE[$opt]}"
+ if test $isf -ne 0 ; then
+ CMDLINE[$opt]=
+ FILES[$isf]="$arg"
+ let isf++
+ fi
+ if test "$arg" = -- ; then
+ CMDLINE[$opt]=
+ let isf++
+ fi
+ let opt++
+done
+test "${FILES[@]}" = "-" && FILES=()
+
#
-# Why sed? Just to get the `=' back instead of ` ' the empty space
-# which are inserted by getopt(1) and also the empty space on the
-# short options -C, -e, -E, -H, and -u.
+# New command line
#
-CMDLINE=$(echo "$CMDLINE" | LC_ALL=POSIX sed -r 's|--([a-z-]+) ?([^-])|--\1=\2|g')
-CMDLINE=$(echo "$CMDLINE" | LC_ALL=POSIX sed -r 's|-([CeEHu]) ?([^-])|-\1\2|g')
-CMDLINE=$(echo "$CMDLINE" | LC_ALL=POSIX sed -r 's|=([[:space:]]+)|\1|g')
+eval set -- ${CMDLINE[@]} ${FILES[@]}
#
# Just for encoding given on command line:
# allow the user to overwrite autodetection
#
-case "${CMDLINE}" in
- *-X[[:blank:]]UTF-8*|*--encoding=UTF-8*)
- CMDLINE=$(echo "$CMDLINE" | LC_ALL=POSIX sed -r 's@(-X[[:blank:]]+|--encoding=)UTF-8@@g')
- ;; # handle this below
- *-X*|*--encoding=*|*--version*|*--help*|*-V*|*--list-media*)
- exec -a enscript enscript.bin ${1+"$@"}
- ;;
- *-I*|*--filter=*)
- exec -a enscript enscript.bin ${1+"$@"}
- ;;
+case "$@" in
+*-X*|*--encoding=*|*--version*|*--help*|*-V*|*--list-media*)
+ exec -a enscript enscript.bin ${1+"$@"}
+ ;;
+*-I*|*--filter=*)
+ exec -a enscript enscript.bin ${1+"$@"}
+ ;;
esac
-#
-# To not fool the bash with eval here
-#
- FILES=$(echo "$CMDLINE" | LC_ALL=POSIX sed -r 's|.* -- ?(.*)|\1|g')
-CMDLINE=$(echo "$CMDLINE" | LC_ALL=POSIX sed -r 's|(.*) -- ?.*|\1|g')
-
-if test "$FILES" = "-" ; then
- FILES=""
-fi
-
-if test -n "$FILES" ; then
+if test ${#FILES[@]} -gt 0 ; then
#
# We have real files, maybe with spaces in their path name
#
- eval set -- "$CMDLINE" "$FILES"
exec -a enscript enscript.bin -X $ENC --filter="[[ \$(file -b %s 2>/dev/null) =~ 'UTF-8 Unicode text' ]] && iconv -c -f UTF-8 -t $ENC %s || cat %s" ${1+"$@"}
-else
- eval set -- "$CMDLINE"
fi
#
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package system-config-printer for openSUSE:Factory
checked in at Fri Feb 27 14:09:57 CET 2009.
--------
--- GNOME/system-config-printer/system-config-printer.changes 2009-02-24 20:50:34.000000000 +0100
+++ /mounts/work_src_done/STABLE/system-config-printer/system-config-printer.changes 2009-02-26 03:49:51.000000000 +0100
@@ -1,0 +2,6 @@
+Thu Feb 26 03:49:13 CET 2009 - vuntz(a)novell.com
+
+- Add system-config-printer-fix-add-printer-git051bc7f0.patch:
+ patch from git to fix the "Add printer" dialog not working.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
New:
----
system-config-printer-fix-add-printer-git051bc7f0.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ system-config-printer.spec ++++++
--- /var/tmp/diff_new_pack.P21601/_old 2009-02-27 14:09:46.000000000 +0100
+++ /var/tmp/diff_new_pack.P21601/_new 2009-02-27 14:09:46.000000000 +0100
@@ -22,7 +22,7 @@
License: GPL v2 or later
Group: Hardware/Printing
Version: 1.1.4
-Release: 1
+Release: 2
Summary: A printer administration tool
Url: http://cyberelk.net/tim/software/system-config-printer/
Source0: http://cyberelk.net/tim/data/system-config-printer/1.0.x/system-config-prin…
@@ -36,6 +36,8 @@
Patch18: system-config-printer-firewall-menu.patch
# PATCH-FIX-UPSTREAM system-config-printer-bnc456110-non-blocking-probe.patch bnc456110 vuntz(a)novell.com -- Make the probing code not block the UI
Patch19: system-config-printer-bnc456110-non-blocking-probe.patch
+# PATCH-FIX-UPSTREAM system-config-printer-fix-add-printer-git051bc7f0.patch vuntz(a)novell.com -- Fix "add printer" dialog not working. Taken from git
+Patch20: system-config-printer-fix-add-printer-git051bc7f0.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Obsoletes: gnome-cups-manager <= 0.33
# For directory ownership
@@ -85,6 +87,7 @@
%patch17 -p1
%patch18 -p1
%patch19 -p1
+%patch20 -p1
gnome-patch-translation-update
%build
@@ -127,6 +130,9 @@
%files lang -f %{name}.lang
%changelog
+* Thu Feb 26 2009 vuntz(a)novell.com
+- Add system-config-printer-fix-add-printer-git051bc7f0.patch:
+ patch from git to fix the "Add printer" dialog not working.
* Tue Feb 24 2009 vuntz(a)novell.com
- Add system-config-printer-bnc456110-non-blocking-probe.patch:
make the probing code non-blocking for the UI.
++++++ system-config-printer-fix-add-printer-git051bc7f0.patch ++++++
diff --git a/system-config-printer.py b/system-config-printer.py
--- a/system-config-printer.py
+++ b/system-config-printer.py
@@ -4874,13 +4874,13 @@ class NewPrinterGUI(GtkGUI):
self.devices.sort()
other = cupshelpers.Device('', **{'device-info' :_("Other")})
self.devices.append (PhysicalDevice (other))
- device_select_path = 0
+ device_select_index = 0
if current_uri:
current_device = PhysicalDevice (current)
try:
i = self.devices.index (current_device)
self.devices[i].add_device (current)
- device_select_path = i
+ device_select_index = i
devs = self.devices[i].get_devices ()
except ValueError:
self.devices.insert(0, current_device)
@@ -4902,6 +4902,7 @@ class NewPrinterGUI(GtkGUI):
self.tvNPDevices.set_model (model)
i = 0
+ device_select_path = None
for device in self.devices:
devs = device.get_devices ()
network = devs[0].device_class == 'network'
@@ -4915,16 +4916,16 @@ class NewPrinterGUI(GtkGUI):
# If this is the currently selected device we need
# to expand the "Network Printer" row so that it
# is visible.
- if device_select_path == i:
+ if device_select_index == i:
network_path = model.get_path (network_iter)
self.tvNPDevices.expand_row (network_path, False)
else:
# Just a method of finding one.
- model.append (network_iter, row=row)
+ iter = model.append (network_iter, row=row)
else:
iter = model.insert_before(None, network_iter, row=row)
- if device_select_path == i:
+ if device_select_index == i:
device_select_path = model.get_path (iter)
self.tvNPDevices.scroll_to_cell (device_select_path,
row_align=0.5)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package perl-MIME-Types for openSUSE:Factory
checked in at Fri Feb 27 14:07:11 CET 2009.
--------
--- perl-MIME-Types/perl-MIME-Types.changes 2009-01-20 16:54:54.000000000 +0100
+++ /mounts/work_src_done/STABLE/perl-MIME-Types/perl-MIME-Types.changes 2009-02-27 11:36:36.000000000 +0100
@@ -1,0 +2,9 @@
+Fri Feb 27 10:48:37 CET 2009 - anicka(a)suse.cz
+
+- update to 1.27
+ * fix application/ogg to .ogx.
+ * alternative for ogg in test scripts
+ * test by_mediatype with regexp parameter.
+ * do not use /bin/pwd in t/pod.t
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
MIME-Types-1.26.tar.bz2
New:
----
MIME-Types-1.27.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-MIME-Types.spec ++++++
--- /var/tmp/diff_new_pack.w16296/_old 2009-02-27 14:06:59.000000000 +0100
+++ /var/tmp/diff_new_pack.w16296/_new 2009-02-27 14:06:59.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package perl-MIME-Types (Version 1.26)
+# spec file for package perl-MIME-Types (Version 1.27)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,7 +19,7 @@
Name: perl-MIME-Types
Url: http://cpan.org/modules/by-module/MIME/
-Version: 1.26
+Version: 1.27
Release: 1
Requires: perl = %{perl_version}
AutoReqProv: on
@@ -51,7 +51,6 @@
make test
%install
-rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
@@ -64,6 +63,12 @@
/var/adm/perl-modules/perl-MIME-Types
%changelog
+* Fri Feb 27 2009 anicka(a)suse.cz
+- update to 1.27
+ * fix application/ogg to .ogx.
+ * alternative for ogg in test scripts
+ * test by_mediatype with regexp parameter.
+ * do not use /bin/pwd in t/pod.t
* Tue Jan 20 2009 anicka(a)suse.cz
- update to 1.26
* added many ooxml types
++++++ MIME-Types-1.26.tar.bz2 -> MIME-Types-1.27.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/MIME-Types-1.26/ChangeLog new/MIME-Types-1.27/ChangeLog
--- old/MIME-Types-1.26/ChangeLog 2008-12-17 09:01:43.000000000 +0100
+++ new/MIME-Types-1.27/ChangeLog 2009-02-03 12:32:03.000000000 +0100
@@ -3,6 +3,16 @@
Unless explicitly stated differently are all changes produced by
Mark Overmeer <perl(a)overmeer.net>
+version 1.27: Tue Feb 3 12:23:08 CET 2009
+
+ - fix application/ogg to .ogx. Add other oggs [John Drago]
+
+ - alternative for ogg in test scripts,
+
+ - test by_mediatype with regexp parameter.
+
+ - do not use /bin/pwd in t/pod.t
+
version 1.26: Wed Dec 17 09:01:27 CET 2008
- added many ooxml types [Joe Spooner]
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/MIME-Types-1.26/lib/MIME/Type.pm new/MIME-Types-1.27/lib/MIME/Type.pm
--- old/MIME-Types-1.26/lib/MIME/Type.pm 2008-12-17 09:01:43.000000000 +0100
+++ new/MIME-Types-1.27/lib/MIME/Type.pm 2009-02-03 12:32:03.000000000 +0100
@@ -1,10 +1,10 @@
-# Copyrights 1999,2001-2008 by Mark Overmeer.
+# Copyrights 1999,2001-2009 by Mark Overmeer.
# For other contributors see ChangeLog.
# See the manual pages for details on the licensing terms.
-# Pod stripped from pm file by OODoc 1.05.
+# Pod stripped from pm file by OODoc 1.06.
package MIME::Type;
use vars '$VERSION';
-$VERSION = '1.26';
+$VERSION = '1.27';
use strict;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/MIME-Types-1.26/lib/MIME/Type.pod new/MIME-Types-1.27/lib/MIME/Type.pod
--- old/MIME-Types-1.26/lib/MIME/Type.pod 2008-12-17 09:01:44.000000000 +0100
+++ new/MIME-Types-1.27/lib/MIME/Type.pod 2009-02-03 12:32:04.000000000 +0100
@@ -270,12 +270,12 @@
=head1 SEE ALSO
-This module is part of MIME-Types distribution version 1.26,
-built on December 17, 2008. Website: F<http://perl.overmeer.net/mimetypes/>
+This module is part of MIME-Types distribution version 1.27,
+built on February 03, 2009. Website: F<http://perl.overmeer.net/mimetypes/>
=head1 LICENSE
-Copyrights 1999,2001-2008 by Mark Overmeer. For other contributors see ChangeLog.
+Copyrights 1999,2001-2009 by Mark Overmeer. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/MIME-Types-1.26/lib/MIME/Types.pm new/MIME-Types-1.27/lib/MIME/Types.pm
--- old/MIME-Types-1.26/lib/MIME/Types.pm 2008-12-17 09:01:44.000000000 +0100
+++ new/MIME-Types-1.27/lib/MIME/Types.pm 2009-02-03 12:32:03.000000000 +0100
@@ -1,11 +1,11 @@
-# Copyrights 1999,2001-2008 by Mark Overmeer.
+# Copyrights 1999,2001-2009 by Mark Overmeer.
# For other contributors see ChangeLog.
# See the manual pages for details on the licensing terms.
-# Pod stripped from pm file by OODoc 1.05.
+# Pod stripped from pm file by OODoc 1.06.
package MIME::Types;
use vars '$VERSION';
-$VERSION = '1.26';
+$VERSION = '1.27';
use strict;
@@ -255,7 +255,7 @@
application/ocsp-response ors
application/octet-stream bin,dms,lha,lzh,exe,class,ani,pgp,so,dll,dmg base64
application/oda oda
-application/ogg ogg
+application/ogg ogx
application/parityfec
application/pdf pdf base64
application/pgp-encrypted 7bit
@@ -743,6 +743,7 @@
audio/mpa-robust
audio/mpeg4-generic
audio/mpeg mpga,mp2,mp3 base64
+audio/ogg ogg,oga
audio/parityfec
audio/PCMA
audio/PCMU
@@ -938,6 +939,7 @@
video/mpeg mp2,mpe,mpeg,mpg base64
video/MPV
video/nv
+video/ogg ogv
video/parityfec
video/pointer
video/quicktime qt,mov base64
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/MIME-Types-1.26/lib/MIME/Types.pod new/MIME-Types-1.27/lib/MIME/Types.pod
--- old/MIME-Types-1.26/lib/MIME/Types.pod 2008-12-17 09:01:44.000000000 +0100
+++ new/MIME-Types-1.27/lib/MIME/Types.pod 2009-02-03 12:32:04.000000000 +0100
@@ -178,12 +178,12 @@
=head1 SEE ALSO
-This module is part of MIME-Types distribution version 1.26,
-built on December 17, 2008. Website: F<http://perl.overmeer.net/mimetypes/>
+This module is part of MIME-Types distribution version 1.27,
+built on February 03, 2009. Website: F<http://perl.overmeer.net/mimetypes/>
=head1 LICENSE
-Copyrights 1999,2001-2008 by Mark Overmeer. For other contributors see ChangeLog.
+Copyrights 1999,2001-2009 by Mark Overmeer. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/MIME-Types-1.26/Makefile.PL new/MIME-Types-1.27/Makefile.PL
--- old/MIME-Types-1.26/Makefile.PL 2008-12-17 09:01:43.000000000 +0100
+++ new/MIME-Types-1.27/Makefile.PL 2009-02-03 12:23:13.000000000 +0100
@@ -4,7 +4,7 @@
WriteMakefile
( NAME => 'MIME::Types'
- , VERSION => '1.26'
+ , VERSION => '1.27'
, PREREQ_PM =>
{ Test::More => 0.47
, Test::Pod => 1.00
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/MIME-Types-1.26/MANIFEST new/MIME-Types-1.27/MANIFEST
--- old/MIME-Types-1.26/MANIFEST 2008-12-17 09:01:47.000000000 +0100
+++ new/MIME-Types-1.27/MANIFEST 2009-02-03 12:32:06.000000000 +0100
@@ -10,5 +10,5 @@
t/11typeol.t
t/20types.t
t/30export.t
-t/pod.t
+t/99pod.t
META.yml Module meta-data (added by MakeMaker)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/MIME-Types-1.26/META.yml new/MIME-Types-1.27/META.yml
--- old/MIME-Types-1.26/META.yml 2008-12-17 09:01:46.000000000 +0100
+++ new/MIME-Types-1.27/META.yml 2009-02-03 12:32:06.000000000 +0100
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: MIME-Types
-version: 1.26
+version: 1.27
abstract: Definition of MIME types
license: perl
author:
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/MIME-Types-1.26/t/30export.t new/MIME-Types-1.27/t/30export.t
--- old/MIME-Types-1.26/t/30export.t 2008-12-17 09:01:43.000000000 +0100
+++ new/MIME-Types-1.27/t/30export.t 2009-02-03 12:32:03.000000000 +0100
@@ -9,7 +9,7 @@
use lib qw(. t);
-BEGIN {plan tests => 36}
+BEGIN {plan tests => 40}
use MIME::Types;
@@ -29,12 +29,18 @@
is($mt, "");
is($cte, "");
-my @c = MIME::Types::by_mediatype("oGG");
-cmp_ok(scalar @c, '==', 1);
+#pkcs7-mime p7m,p7c
+
+my @c = MIME::Types::by_mediatype("pkcs7-mime");
+cmp_ok(scalar @c, '==', 2);
cmp_ok(scalar @{$c[0]}, '>', 2);
-is($c[0]->[0], "ogg");
-is($c[0]->[1], "application/ogg");
+is($c[0]->[0], "p7m");
+is($c[0]->[1], "application/pkcs7-mime");
is($c[0]->[2], "base64");
+cmp_ok(scalar @{$c[1]}, '>', 2);
+is($c[1]->[0], "p7c");
+is($c[1]->[1], "application/pkcs7-mime");
+is($c[1]->[2], "base64");
@c = MIME::Types::by_mediatype("Application/pDF");
cmp_ok(scalar @c, '<', 2);
@@ -65,10 +71,10 @@
is($aref->[0], "");
is($aref->[1], "");
-$aref = MIME::Types::by_mediatype("ogg");
+$aref = MIME::Types::by_mediatype(qr/\bzip/);
cmp_ok(scalar @$aref, '==', 1);
-is($aref->[0]->[0], "ogg");
-is($aref->[0]->[1], "application/ogg");
+is($aref->[0]->[0], "zip");
+is($aref->[0]->[1], "application/zip");
is($aref->[0]->[2], "base64");
$aref = MIME::Types::by_mediatype("Application/pDF");
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/MIME-Types-1.26/t/99pod.t new/MIME-Types-1.27/t/99pod.t
--- old/MIME-Types-1.26/t/99pod.t 1970-01-01 01:00:00.000000000 +0100
+++ new/MIME-Types-1.27/t/99pod.t 2009-02-03 12:23:13.000000000 +0100
@@ -0,0 +1,15 @@
+#!/usr/bin/perl
+use warnings;
+use strict;
+
+use Test::More;
+
+BEGIN
+{ eval "use Test::Pod 1.00";
+ plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
+
+ plan skip_all => "devel home uses OODoc"
+ if $ENV{MARKOV_DEVEL};
+}
+
+all_pod_files_ok();
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/MIME-Types-1.26/t/pod.t new/MIME-Types-1.27/t/pod.t
--- old/MIME-Types-1.26/t/pod.t 2008-12-17 09:01:43.000000000 +0100
+++ new/MIME-Types-1.27/t/pod.t 1970-01-01 01:00:00.000000000 +0100
@@ -1,17 +0,0 @@
-#!/usr/bin/perl
-use warnings;
-use strict;
-
-use Test::More;
-
-BEGIN
-{ eval "use Test::Pod 1.00";
-
- plan skip_all => "Test::Pod 1.00 required for testing POD"
- if $@;
-
- plan skip_all => "devel home uses OODoc"
- if qx(/bin/pwd) =~ m[^/home/markov/];
-}
-
-all_pod_files_ok();
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package perl-HTTP-DAV for openSUSE:Factory
checked in at Fri Feb 27 14:06:53 CET 2009.
--------
--- perl-HTTP-DAV/perl-HTTP-DAV.changes 2009-01-20 16:43:44.000000000 +0100
+++ /mounts/work_src_done/STABLE/perl-HTTP-DAV/perl-HTTP-DAV.changes 2009-02-27 11:35:20.000000000 +0100
@@ -1,0 +2,17 @@
+Fri Feb 27 11:34:13 CET 2009 - anicka(a)suse.cz
+
+- update to 0.36
+ * Fixed RT #19616 (http://rt.cpan.org/Public/Bug/Display.html?id=19616)
+ LWP::UserAgent::redirect_ok() is not changed anymore. We're subclassing
+ it from HTTP::DAV::UserAgent and overriding redirect_ok() there.
+ * Fixed RT #42877 (http://rt.cpan.org/Public/Bug/Display.html?id=42877)
+ HTTP::DAV::UserAgent::credentials() has been modified to behave like
+ LWP::UserAgent::credentials(), otherwise basic authentication breakages
+ can occur.
+ * Fixed a problem with C<-depth> argument to C<HTTP::DAV::propfind()> that
+ could lead to massive performance degradation, especially when running
+ C<propfind()> against large folders.
+ C<-depth> was set to 1 even when passed as zero.
+- fix permissions, ends of lines and perl dependency
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
HTTP-DAV-0.35.tar.bz2
New:
----
HTTP-DAV-0.36.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-HTTP-DAV.spec ++++++
--- /var/tmp/diff_new_pack.w15275/_old 2009-02-27 14:06:45.000000000 +0100
+++ /var/tmp/diff_new_pack.w15275/_new 2009-02-27 14:06:45.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package perl-HTTP-DAV (Version 0.35)
+# spec file for package perl-HTTP-DAV (Version 0.36)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -20,13 +20,13 @@
Url: http://www.cpan.org/modules/by-module/HTTP/
Name: perl-HTTP-DAV
-BuildRequires: perl-XML-DOM perl-XML-Parser perl-libwww-perl
+BuildRequires: dos2unix perl-XML-DOM perl-XML-Parser perl-libwww-perl
License: Artistic License
Group: Development/Libraries/Perl
-Requires: perl-libwww-perl
+Requires: perl-libwww-perl perl = %{perl_version}
AutoReqProv: on
Summary: A WebDAV client library for Perl5
-Version: 0.35
+Version: 0.36
Release: 1
Source: HTTP-DAV-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -44,7 +44,10 @@
%prep
%setup -q -n HTTP-DAV-%{version}
-# ---------------------------------------------------------------------------
+chmod a-x README Changes MANIFEST
+dos2unix README Changes MANIFEST
+chmod a-x DAV/*.pm DAV.pm
+dos2unix DAV/*.pm DAV.pm
%build
perl Makefile.PL
@@ -52,7 +55,6 @@
%check
make test
-# ---------------------------------------------------------------------------
%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
@@ -73,6 +75,20 @@
/var/adm/perl-modules/%{name}
%changelog
+* Fri Feb 27 2009 anicka(a)suse.cz
+- update to 0.36
+ * Fixed RT #19616 (http://rt.cpan.org/Public/Bug/Display.html?id=19616)
+ LWP::UserAgent::redirect_ok() is not changed anymore. We're subclassing
+ it from HTTP::DAV::UserAgent and overriding redirect_ok() there.
+ * Fixed RT #42877 (http://rt.cpan.org/Public/Bug/Display.html?id=42877)
+ HTTP::DAV::UserAgent::credentials() has been modified to behave like
+ LWP::UserAgent::credentials(), otherwise basic authentication breakages
+ can occur.
+ * Fixed a problem with C<-depth> argument to C<HTTP::DAV::propfind()> that
+ could lead to massive performance degradation, especially when running
+ C<propfind()> against large folders.
+ C<-depth> was set to 1 even when passed as zero.
+- fix permissions, ends of lines and perl dependency
* Tue Jan 20 2009 anicka(a)suse.cz
- update to 0.35
* Fixed getting single or multiple files directly to \*STDOUT.
++++++ HTTP-DAV-0.35.tar.bz2 -> HTTP-DAV-0.36.tar.bz2 ++++++
++++ 5787 lines of diff (skipped)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0