~ubuntu-branches/ubuntu/trusty/bioperl/trusty-proposed

« back to all changes in this revision

Viewing changes to Bio/Root/Storable.pm

  • Committer: Bazaar Package Importer
  • Author(s): Charles Plessy
  • Date: 2009-03-10 07:19:11 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090310071911-fukqzw54pyb1f0bd
Tags: 1.6.0-2
* Removed patch system (not used):
  - removed instuctions in debian/rules;
  - removed quilt from Build-Depends in debian/control.
* Re-enabled tests:
  - uncommented test command in debian/rules;
  - uncommented previously missing build-dependencies in debian/control.
  - Re-enabled tests and uncommented build-dependencies accordingly.
* Removed libmodule-build-perl and libtest-harness-perl from
  Build-Depends-Indep (provided by perl-modules).
* Better cleaning of empty directories using find -type d -empty -delete
  instead of rmdir in debian/rules (LP: #324001).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: Storable.pm,v 1.7.4.1 2006/10/02 23:10:23 sendu Exp $
 
1
# $Id: Storable.pm 10689 2006-10-04 05:52:06Z tseemann $
2
2
#
3
3
# BioPerl module for Bio::Root::Storable
4
4
#
89
89
use strict;
90
90
use Data::Dumper qw( Dumper );
91
91
 
92
 
 
 
92
use File::Spec;
93
93
use Bio::Root::IO;
94
94
 
95
95
use vars qw( $BINARY );
196
196
=head2 workdir
197
197
 
198
198
  Arg [1]   : string (optional) (TODO - convert to array for x-platform)
199
 
  Function  : Accessor for the statefile directory. Defaults to
200
 
              $Bio::Root::IO::TEMPDIR
 
199
  Function  : Accessor for the statefile directory. Defaults to File::Spec->tmpdir
201
200
  Returntype: string
202
201
  Exceptions: 
203
202
  Caller    : 
213
212
    $self->{$key} && $self->debug("Overwriting workdir: probably bad!");
214
213
    $self->{$key} = shift
215
214
  }
216
 
  $self->{$key} ||= $Bio::Root::IO::TEMPDIR;
 
215
#  $self->{$key} ||= $Bio::Root::IO::TEMPDIR;
 
216
  $self->{$key} ||= File::Spec->tmpdir();
217
217
  return $self->{$key};
218
218
}
219
219