From 40126523bdc76177f42c7eba805f3b9921391157 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Wed, 9 May 2001 10:42:28 +0000 Subject: [PATCH] Can now handle rar files (Denis Manente). git-svn-id: https://rox.svn.sourceforge.net/svnroot/rox/trunk/Archive@634 66de3db3-b00d-0410-b41b-f4738ad19bea --- AppInfo.xml | 2 +- Archive.py | 3 ++- Help/Changes | 4 ++++ Help/README | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/AppInfo.xml b/AppInfo.xml index 6f28e51..0252c87 100644 --- a/AppInfo.xml +++ b/AppInfo.xml @@ -4,7 +4,7 @@ Such files usually have names ending in .gz, .tar, .tgz, .bz2 or .zip. Create and read archive files - Thomas Leonard + Thomas Leonard GNU General Public License http://rox.sourceforge.net diff --git a/Archive.py b/Archive.py index 648adec..6d007d0 100644 --- a/Archive.py +++ b/Archive.py @@ -21,7 +21,8 @@ archive_formats = [ ('.tar', "tar xf '%s'", "tar cf '%(dst)s' '%(src)s'"), ('.zip', "unzip '%s'", "zip -r '%(dst)s' '%(src)s'"), ('.deb', "ar x '%s'", None), - + ('.rar', "rar x '%s'", "rar a '%(dst)s' '%(src)s'"), + ('.tgz', "gunzip -c '%s' | tar xf -", "tar cf - '%(src)s' | gzip > '%(dst)s'"), ('.tar.gz', "gunzip -c '%s' | tar xf -", diff --git a/Help/Changes b/Help/Changes index 5772858..07bacfa 100644 --- a/Help/Changes +++ b/Help/Changes @@ -2,6 +2,10 @@ A simple archiver by Thomas Leonard +09-May-2001 +~~~~~~~~~~~ +Can now handle rar files (Denis Manente). + 26-Apr-2001 ~~~~~~~~~~~ Moved SaveBox and choices code out into ROX-Lib. You need ROX-Lib installed diff --git a/Help/README b/Help/README index f9d3381..6c05d17 100644 --- a/Help/README +++ b/Help/README @@ -39,9 +39,11 @@ The following extensions are recognised: .zip .deb (extract only) .tar + .rar .tgz or .tar.gz .tbz, .tbz2, .tar.bz or .tar.bz2 + Conditions ~~~~~~~~~~ This program is free software; you can redistribute it and/or modify -- 2.11.4.GIT