projects
/
id3fs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dc40876
)
constraints_tag_list: handle dangling tag with unspecified value
author
Ian Beckwith
<ianb@erislabs.net>
Sun, 3 Oct 2010 17:18:14 +0000
(18:18 +0100)
committer
Ian Beckwith
<ianb@erislabs.net>
Sun, 3 Oct 2010 17:18:14 +0000
(18:18 +0100)
lib/ID3FS/DB.pm
patch
|
blob
|
history
diff --git
a/lib/ID3FS/DB.pm
b/lib/ID3FS/DB.pm
index
19015fd
..
fd0b7a7
100644
(file)
--- a/
lib/ID3FS/DB.pm
+++ b/
lib/ID3FS/DB.pm
@@
-416,7
+416,7
@@
sub constraints_tag_list
my @tags_vals=();
for my $constraint (@constraints)
{
my @tags_vals=();
for my $constraint (@constraints)
{
- print ref($constraint), $constraint->{name}, "\n";
+ print ref($constraint),
": ",
$constraint->{name}, "\n";
if(ref($constraint) eq "ID3FS::PathElement::Tag")
{
if(defined($lasttag))
if(ref($constraint) eq "ID3FS::PathElement::Tag")
{
if(defined($lasttag))
@@
-437,6
+437,11
@@
sub constraints_tag_list
}
}
}
}
}
}
+ # handle dangling tag with unspecified value
+ if(defined($lasttag))
+ {
+ push(@tags, $lasttag);
+ }
unless($self->{postgres})
{
@tags=map{ "\"$_\""; } @tags;
unless($self->{postgres})
{
@tags=map{ "\"$_\""; } @tags;