[SCM] Debian Qt/KDE packaging tools branch, master, updated. debian/0.5.3-76-g8dcdf1c

Modestas Vainius modax at alioth.debian.org
Mon Feb 1 11:53:30 UTC 2010


The following commit has been merged in the master branch:
commit 217e07f7c2d020d83430b216bbda69780b83d9d9
Author: Modestas Vainius <modestas at vainius.eu>
Date:   Mon Feb 1 13:14:47 2010 +0200

    Add --convert option to `pkgkde-symbolshelper rewrite`.
    
    Make it easy to convert old style symbol files to new style.
---
 symbolshelper/pkgkde-symbolshelper |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/symbolshelper/pkgkde-symbolshelper b/symbolshelper/pkgkde-symbolshelper
index f9f3d89..0731ce2 100755
--- a/symbolshelper/pkgkde-symbolshelper
+++ b/symbolshelper/pkgkde-symbolshelper
@@ -550,9 +550,11 @@ sub subcommand_patch {
 
 sub subcommand_rewrite {
     my $opt_template = 1;
+    my $opt_convert;
     my %opts = (
 	get_common_options("oia"),
 	"template!" => \$opt_template,
+	"convert" => \$opt_convert,
     );
     if (GetOptions(%opts)) {
 	check_mandatory_options("i");
@@ -562,6 +564,16 @@ sub subcommand_rewrite {
 	    my %o = (
 		template_mode => $opt_template
 	    );
+
+	    if ($opt_convert) {
+		foreach my $soname ($symfile->get_sonames()) {
+		    foreach my $sym ($symfile->get_symbols($soname)) {
+			$sym->upgrade_virtual_table_symbol($opt_arch);
+			tweak_symbol($sym);
+		    }
+		}
+	    }
+
 	    return out_symfile($symfile, %o);
 	} else {
 	    error("input symbol file ($opt_in) not found");

-- 
Debian Qt/KDE packaging tools



More information about the pkg-kde-commits mailing list