+sub check_worry_stable {
+ my ($status) = @_;
+
+ if ($status !~ m/ \[[^]]*S/) {
+ return 0;
+ }
+ return 1;
+}
+
+sub get_taginfo {
+ my $bi = shift;
+
+ my $taginfo = "";
+ $taginfo .= $bi->{'pending'} ? "P" : " ";
+ $taginfo .= $bi->{'patch'} ? "+" : " ";
+ $taginfo .= $bi->{'help'} ? "H" : " ";
+ $taginfo .= $bi->{'moreinfo'} ? "M" : " ";
+ $taginfo .= $bi->{'unreproducible'} ? "R" : " ";
+ $taginfo .= $bi->{'security'} ? "S" : " ";
+ $taginfo .= $bi->{'upstream'} ? "U" : " ";
+ $taginfo .= $bi->{'etch-ignore'} ? "I" : " ";
+
+ return $taginfo;
+}
+
+sub get_relinfo {
+ my $bi = shift;
+
+ my $relinfo = "";
+ for my $dist qw(oldstable stable testing unstable experimental) {
+ $relinfo .= uc(substr($dist, 0, 1)) if $bi->{$dist};
+ }
+
+ return $relinfo;
+}
+
+