projects
/
BackupPC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor tweaks for 3.1.0beta0 release.
[BackupPC.git]
/
lib
/
BackupPC
/
Storage
/
Text.pm
diff --git
a/lib/BackupPC/Storage/Text.pm
b/lib/BackupPC/Storage/Text.pm
index
b99648d
..
24f02eb
100644
(file)
--- a/
lib/BackupPC/Storage/Text.pm
+++ b/
lib/BackupPC/Storage/Text.pm
@@
-12,7
+12,7
@@
# Craig Barratt <cbarratt@users.sourceforge.net>
#
# COPYRIGHT
# Craig Barratt <cbarratt@users.sourceforge.net>
#
# COPYRIGHT
-# Copyright (C) 2004 Craig Barratt
+# Copyright (C) 2004
-2007
Craig Barratt
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@
-30,7
+30,7
@@
#
#========================================================================
#
#
#========================================================================
#
-# Version 3.
0.0, released 28 Jan
2007.
+# Version 3.
1.0beta0, released 3 Sep
2007.
#
# See http://backuppc.sourceforge.net.
#
#
# See http://backuppc.sourceforge.net.
#
@@
-85,16
+85,15
@@
sub BackupInfoRead
}
close(LOCK);
#
}
close(LOCK);
#
- # Default the level and version fields if not present
+ # Default the version field. Prior to 3.0.0 the xferMethod
+ # field is empty, so we use that to figure out the version.
#
for ( my $i = 0 ; $i < @Backups ; $i++ ) {
#
for ( my $i = 0 ; $i < @Backups ; $i++ ) {
- if ( defined($Backups[$i]{level}) ) {
- if ( !defined($Backups[$i]{version}) ) {
- $Backups[$i]{version} = "3.0.0";
- }
- } else {
- $Backups[$i]{level} = $Backups[$i]{type} eq "incr" ? 1 : 0;
+ next if ( $Backups[$i]{version} ne "" );
+ if ( $Backups[$i]{xferMethod} eq "" ) {
$Backups[$i]{version} = "2.1.2";
$Backups[$i]{version} = "2.1.2";
+ } else {
+ $Backups[$i]{version} = "3.0.0";
}
}
return @Backups;
}
}
return @Backups;