~ubuntu-branches/ubuntu/vivid/lire/vivid

« back to all changes in this revision

Viewing changes to all/lib/Lire/DlfStore.pm

  • Committer: Bazaar Package Importer
  • Author(s): Joost van Baal
  • Date: 2009-03-15 08:45:20 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090315084520-fu8dvg0xp7kr1cm2
Tags: 2:2.1-1
* New upstream release.
* debian/control: Made myself maintainer, Wolfgang Sourdeau now is in
  Uploaders.
* debian/control: Update dependency:
  s/libdbd-sqlite2-perl (>= 1:0.33)/libdbd-sqlite3-perl/, add suggests
  sqlite, sqlite3: Lire 2.1 requires DBD::SQLite, which uses SQLite 3.0
  (Debian package "sqlite3").  SQLite 2 (Debian package "sqlite") is no
  longer supported by Lire. If you have one or more old lire stores, you
  will need to convert each of them to the new format, like this:
  sqlite oldstore.db .dump | sqlite3 newstore.db .
  See /usr/share/doc/lire/NEWS.Debian.gz for more information.
* debian/lire.NEWS: document upgrade procedure to SQLite3.
* Acknowledge NMU, thanks a lot Christian Perrier! (Closes: #492180,
  #502291, #492180, #502767).
* debian/po/vi.po: Update Vietnamese translation, thanks to Clytie Siddall
  (Closes: #513586).
* debian/{lire.config,lire.postinst,lire.postrm,lire.preinst}: Support
  upgrades from 2.0.2-3 (etch / current oldstable) or later only.
  - Debconf variables lire/useexistinguser and lire/useexistinggroup have
    been removed < 2.0.2-3; remove code dealing with them from lire.config.
  - Debconf variables "user group filesuser filesgroup leftuser leftgroup
    usingexistinguser usingexistinggroup wronguser wronggroup
    lire_user_not_lire upgradingvariables upgrading_to_15
    upgrating_to_20" have all been removed < 2.0.2-3; remove code dealing
    with them from lire.postinst.
  - Configuration files /etc/lire/*/defaults and /etc/lire/catalog.xml have
    been removed at around 1.1-1.  Remove code dealing with them from
    lire.postrm.
  - Remove code dealing with obsolete Debconf variables lire/user and
    lire/group from lire.preinst
* debian/rules: remove support for patches: we're no longer applying any
  patches since 2.0.1-3.
* control: libmime-perl is superseded by libmime-tools-perl, adjust name.
* debian/control: Update Standards-Version from 3.7.3 to 3.8.0  (no
  changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
    }
75
75
 
76
76
    $self->_load_config_file();
77
 
    $self->{'_dbh'} = DBI->connect( "dbi:SQLite2:dbname=" .
 
77
    $self->{'_dbh'} = DBI->connect( "dbi:SQLite:dbname=" .
78
78
                                    $self->{'_store_path'} . "/dlf.db", "", "",
79
79
                                    { 'RaiseError' => 1,
80
80
                                      'AutoCommit' => 0, } );
162
162
    # DESTROY calls close() another time
163
163
    if ( $self->{'_dbh'} ) {
164
164
        $self->{'_dbh'}->commit();
 
165
 
 
166
        # Clear any cached results from prepare_cached() before disconnecting,
 
167
        # to avoid infamous 'closing dbh with active statement handle' warning.
 
168
        my $CachedKids_hashref = $self->{'_dbh'}->{CachedKids};
 
169
        %$CachedKids_hashref = () if $CachedKids_hashref;
 
170
 
165
171
        $self->{'_dbh'}->disconnect();
166
172
        delete $self->{'_dbh'};
167
173
        $self->{'_config'}->save()
822
828
 
823
829
=head1 VERSION
824
830
 
825
 
$Id: DlfStore.pm,v 1.39 2006/07/23 13:16:29 vanbaal Exp $
 
831
$Id: DlfStore.pm,v 1.40 2008/07/17 13:47:14 wraay Exp $
826
832
 
827
833
=head1 COPYRIGHT
828
834