The following commit has been merged in the master branch:
commit b8b229b61746b5bc5ecd51ccc961687f318e278d
Author: Raphael Hertzog <[email protected]>
Date:   Sat Jun 20 22:07:47 2009 +0200

    Dpkg::Shlibs::Symbol: add new has_tag() and get_tag_value() functions

diff --git a/scripts/Dpkg/Shlibs/Symbol.pm b/scripts/Dpkg/Shlibs/Symbol.pm
index d5da124..c411b64 100644
--- a/scripts/Dpkg/Shlibs/Symbol.pm
+++ b/scripts/Dpkg/Shlibs/Symbol.pm
@@ -174,14 +174,24 @@ sub delete_tag {
     return 0;
 }
 
+sub has_tag {
+    my ($self, $tag) = @_;
+    return exists $self->{tags}{$tag};
+}
+
+sub get_tag_value {
+    my ($self, $tag) = @_;
+    return $self->{tags}{$tag};
+}
+
 sub is_optional {
     my $self = shift;
-    return exists $self->{tags}{optional};
+    return $self->has_tag("optional");
 }
 
 sub is_arch_specific {
     my $self = shift;
-    return exists $self->{tags}{arch};
+    return $self->has_tag("arch");
 }
 
 sub arch_is_concerned {

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to