The branch, master has been updated
via 327c3005d16eda2c530adb67ea4b4b9e605c0c7c (commit)
from a3eebd32631fa24cf3e0833106a9c7878ce61199 (commit)
- Shortlog ------------------------------------------------------------
327c300 dpkg-gensymbols: Use get_host_arch() instead of dpkg-architecture
Summary of changes:
ChangeLog | 6 ++++++
scripts/dpkg-gensymbols.pl | 5 ++---
2 files changed, 8 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
Details of changes:
commit 327c3005d16eda2c530adb67ea4b4b9e605c0c7c
Author: Guillem Jover <[EMAIL PROTECTED]>
Date: Sat Oct 13 00:30:15 2007 +0300
dpkg-gensymbols: Use get_host_arch() instead of dpkg-architecture
diff --git a/ChangeLog b/ChangeLog
index 307e893..3457830 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-10-13 Guillem Jover <[EMAIL PROTECTED]>
+
+ * scripts/dpkg-gensymbols.pl: Use new Dpkg::Arch module.
+ ($host_arch): Initialize with get_host_arch instead of direct call to
+ 'dpkg-architecture'.
+
2007-10-12 Guillem Jover <[EMAIL PROTECTED]>
* scripts/controllib.pl ($host_arch, get_host_arch, get_valid_arches)
diff --git a/scripts/dpkg-gensymbols.pl b/scripts/dpkg-gensymbols.pl
index ee51c80..27cb33a 100755
--- a/scripts/dpkg-gensymbols.pl
+++ b/scripts/dpkg-gensymbols.pl
@@ -4,6 +4,7 @@ use strict;
use warnings;
use Dpkg;
+use Dpkg::Arch qw(get_host_arch);
use Dpkg::Shlibs qw(@librarypaths);
use Dpkg::Shlibs::Objdump;
use Dpkg::Shlibs::SymbolFile;
@@ -19,9 +20,6 @@ our (%f, %fi);
our %p2i;
our @librarypaths;
-our $host_arch= `dpkg-architecture -qDEB_HOST_ARCH`;
-chomp $host_arch;
-
my $controlfile = 'debian/control';
my $changelogfile = 'debian/changelog';
my $packagebuilddir = 'debian/tmp';
@@ -32,6 +30,7 @@ my $oppackage;
my $compare = 1; # Bail on missing symbols by default
my $output;
my $debug = 0;
+my $host_arch = get_host_arch();
sub version {
printf _g("Debian %s version %s.\n"), $progname, $version;
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]