rarslave2.git
13 years ago[CONFIG] Add RarslaveConfig class
Ira W. Snyder [Tue, 26 Dec 2006 22:43:55 +0000 (14:43 -0800)]
[CONFIG] Add RarslaveConfig class

Add the RarslaveConfig class, which is almost entirely imported from the
original rarslave program.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
13 years ago[RARSLAVE] Fix extraction
Ira W. Snyder [Tue, 26 Dec 2006 23:45:25 +0000 (15:45 -0800)]
[RARSLAVE] Fix extraction

Important bugfix. If the extraction directory is None, then we can safely
assume that we just don't want to do anything but a default extraction, not
outputting the files anywhere special.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
13 years ago[RARSLAVE] Fix directory switching
Ira W. Snyder [Tue, 26 Dec 2006 19:49:48 +0000 (11:49 -0800)]
[RARSLAVE] Fix directory switching

Important bugfix. This fixes the directory switching code in the
run_command() function. Without this fix, the directory never gets switched
as expected.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
13 years ago[RARSLAVE] Improve error handling
Ira W. Snyder [Mon, 25 Dec 2006 09:13:51 +0000 (01:13 -0800)]
[RARSLAVE] Improve error handling

Improve the error handling, mostly of the main operations that occur during
a program run (check, repair, join, extract, delete).

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
13 years ago[RARSLAVE] Improve deletion
Ira W. Snyder [Mon, 25 Dec 2006 08:21:23 +0000 (00:21 -0800)]
[RARSLAVE] Improve deletion

Improve the deletion capabilities. This has initial support for deleting
interactively as well.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
13 years ago[RARSLAVE] Add main program logic
Ira W. Snyder [Mon, 25 Dec 2006 04:56:05 +0000 (20:56 -0800)]
[RARSLAVE] Add main program logic

Add the main program logic to the PAR2Set class. This handles verifying,
repairing, joining, extraction, and deletion of the leftover files in the
PAR set.

This also converts over the main() code to use this function exclusively.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
13 years ago[RARSLAVE] Add PAR2 Parser
Ira W. Snyder [Mon, 25 Dec 2006 01:45:56 +0000 (17:45 -0800)]
[RARSLAVE] Add PAR2 Parser

Add the class par2parser which parses PAR2 files to extract the list of
files which are "protected" by them.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
13 years ago[RARSLAVE] Add PAR2Set class
Ira W. Snyder [Mon, 25 Dec 2006 01:39:24 +0000 (17:39 -0800)]
[RARSLAVE] Add PAR2Set class

Add the PAR2Set class, which is able to tell whether a parset is the same
as another set.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
13 years ago[RARSLAVE] Add repairer
Ira W. Snyder [Sun, 24 Dec 2006 20:33:36 +0000 (12:33 -0800)]
[RARSLAVE] Add repairer

Add the class RarslaveRepairer which will repair / join par sets.

Also, change the no-extract heads to return the files that are protected by
the rar set, so that they can be mv'd later.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
13 years agoMerge with add-logger
Ira W. Snyder [Sun, 24 Dec 2006 03:14:22 +0000 (19:14 -0800)]
Merge with add-logger

13 years ago[RARSLAVE] Add extraction class
Ira W. Snyder [Sun, 24 Dec 2006 03:08:11 +0000 (19:08 -0800)]
[RARSLAVE] Add extraction class

Adds the RarslaveExtractor class which handles extraction of all types of
set supported by rarslave.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
13 years ago[RARSLAVE] Add logging class
Ira W. Snyder [Sun, 24 Dec 2006 03:04:21 +0000 (19:04 -0800)]
[RARSLAVE] Add logging class

This adds the RarslaveLogger class, used for logging of messages on a
per-set basis. It also adds the support class RarslaveMessage, which is
used within RarslaveLogger.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
13 years agoInitial work on extraction.
Ira W. Snyder [Sat, 16 Dec 2006 21:19:03 +0000 (13:19 -0800)]
Initial work on extraction.

13 years agoAdd type detection code.
Ira W. Snyder [Sat, 16 Dec 2006 07:22:34 +0000 (23:22 -0800)]
Add type detection code.

13 years agoInitial commit of the rarslave project.
Ira W. Snyder [Sat, 16 Dec 2006 05:17:23 +0000 (21:17 -0800)]
Initial commit of the rarslave project.