diff options
-rwxr-xr-x | Master/install-tl | 4 | ||||
-rw-r--r-- | Master/tlpkg/TeXLive/TLConfig.pm | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/Master/install-tl b/Master/install-tl index 3847c0c553c..0822249b1a4 100755 --- a/Master/install-tl +++ b/Master/install-tl @@ -652,6 +652,10 @@ sub do_postinst_stuff { rmtree("$TEXDIR/TeXLive::TLConfig::RelocTree/tlpkg"); } + # + # create package backup directory for tlmgr autobackup to work + mkdirhier("$TEXDIR/$TeXLive::TLConfig::PackageBackupDir"); + # final program execution # we have to do several things: # - clean the environment from spurious TEXMF related variables diff --git a/Master/tlpkg/TeXLive/TLConfig.pm b/Master/tlpkg/TeXLive/TLConfig.pm index 315c88d5517..02d9dbc75c2 100644 --- a/Master/tlpkg/TeXLive/TLConfig.pm +++ b/Master/tlpkg/TeXLive/TLConfig.pm @@ -33,6 +33,7 @@ BEGIN { $DefaultContainerExtension $InfraLocation $DatabaseName + $PackageBackupDir $BlockSize $Archive $TeXLiveServerURL @@ -74,6 +75,9 @@ our $DefaultCategory = "Package"; our $InfraLocation = "tlpkg"; our $DatabaseName = "texlive.tlpdb"; +# location of backups in default autobackup setting +our $PackageBackupDir = "$InfraLocation/package-backups"; + our $BlockSize = 4096; our $Archive = "archive"; @@ -129,7 +133,7 @@ our %TLPDBOptions = ( [ "n:-1..", 1, "autobackup", "Number of backups to keep" ], "backupdir" => - [ "p", "tlpkg/package-backups", "backupdir", + [ "p", $PackageBackupDir, "backupdir", "Directory for backups" ], "create_formats" => [ "b", 1, "formats", |