our @ISA = qw( Exporter );
our ( %packages, %sources, %src2bin, %did2pkg, %descriptions,
- %postf, %spostf, %debtags,
+ %postf, %spostf, %debtags, %desctrans,
$obj, $s_obj, $p_obj, $sp_obj );
our @EXPORT = qw( %packages %sources %src2bin %did2pkg %descriptions
- %postf %spostf %debtags
+ %postf %spostf %debtags %desctrans
$obj $s_obj $p_obj $sp_obj );
our $db_read_time ||= 0;
tie %descriptions, 'DB_File', "$DBDIR/descriptions.db",
O_RDONLY, 0666, $DB_BTREE
or die "couldn't tie DB $DBDIR/descriptions.db: $!";
+ tie %desctrans, 'DB_File', "$DBDIR/descriptions_translated.db",
+ O_RDONLY, 0666, $DB_BTREE
+ or die "couldn't tie DB $DBDIR/descriptions_translated.db: $!";
tie %did2pkg, 'DB_File', "$DBDIR/descriptions_packages.db",
O_RDONLY, 0666, $DB_BTREE
or die "couldn't tie DB $DBDIR/descriptions_packages.db: $!";
return (exists($self->{provided_by}) && !exists($self->{versions}));
}
-our @TAKE_NEWEST = qw( description essential priority section subsection tag
+our @TAKE_NEWEST = qw( description description-md5 essential priority section subsection tag
archive source source-version url );
our @STORE_ALL = qw( version source source-version installed-size size
filename md5sum sha1 sha256 task