trim excess whitespace
This commit is contained in:
parent
2199a6c1d0
commit
ea715c6934
|
@ -8,15 +8,15 @@ searched, repacked and compared with patool. The advantage of patool is
|
|||
its simplicity in handling archive files without having to remember a
|
||||
myriad of programs and options.
|
||||
|
||||
The archive format is determined by the file(1) program and as
|
||||
The archive format is determined by the file(1) program and as
|
||||
a fallback by the archive file extension.
|
||||
|
||||
patool supports 7z (.7z, .cb7), ACE (.ace, .cba), ADF (.adf), ALZIP (.alz),
|
||||
APE (.ape), AR (.a), ARC (.arc), ARJ (.arj), BZIP2 (.bz2),
|
||||
CAB (.cab), COMPRESS (.Z), CPIO (.cpio), DEB (.deb), DMS (.dms),
|
||||
FLAC (.flac), GZIP (.gz), ISO (.iso), LRZIP (.lrz), LZH (.lha, .lzh),
|
||||
APE (.ape), AR (.a), ARC (.arc), ARJ (.arj), BZIP2 (.bz2),
|
||||
CAB (.cab), COMPRESS (.Z), CPIO (.cpio), DEB (.deb), DMS (.dms),
|
||||
FLAC (.flac), GZIP (.gz), ISO (.iso), LRZIP (.lrz), LZH (.lha, .lzh),
|
||||
LZIP (.lz), LZMA (.lzma), LZOP (.lzo), RPM (.rpm), RAR (.rar, .cbr),
|
||||
RZIP (.rz), SHN (.shn), TAR (.tar, .cbt), XZ (.xz),
|
||||
RZIP (.rz), SHN (.shn), TAR (.tar, .cbt), XZ (.xz),
|
||||
ZIP (.zip, .jar, .cbz) and ZOO (.zoo) archive formats.
|
||||
It relies on helper applications to handle those archive formats
|
||||
(for example bzip2 for BZIP2 archives).
|
||||
|
|
|
@ -33,23 +33,23 @@ General rules for all convenience functions:
|
|||
The convenience functions are:
|
||||
|
||||
* ``def extract_archive(archive, verbosity=0, outdir=None, program=None)``
|
||||
|
||||
|
||||
Extracts the given archive filename to the current working directory
|
||||
or if specified to the given directory name in outdir.
|
||||
Checks that the archive exists and is readable before extracting it.
|
||||
|
||||
* ``def list_archive(archive, verbosity=1, program=None)``
|
||||
|
||||
|
||||
Lists the contents of the given archive filename on stdout.
|
||||
Checks that the archive exists and is readable before listing it.
|
||||
|
||||
* ``def test_archive(archive, verbosity=0, program=None)``
|
||||
|
||||
|
||||
Tests the given archive filename.
|
||||
Checks that the archive exists and is readable before testing it.
|
||||
|
||||
* ``def create_archive(archive, filenames, verbosity=0, program=None)``
|
||||
|
||||
|
||||
Creates a new archive. The type of archive is determined
|
||||
by the archive filename extension.
|
||||
Checks that the archive is not already existing to avoid overwriting it.
|
||||
|
@ -57,7 +57,7 @@ The convenience functions are:
|
|||
and are readable.
|
||||
|
||||
* ``diff_archives(archive1, archive2, verbosity=0)``
|
||||
|
||||
|
||||
This function lists differences in the content of the two archives.
|
||||
Both archives are extracted and the contents are compared
|
||||
recursively with the diff(1) program.
|
||||
|
@ -70,7 +70,7 @@ The convenience functions are:
|
|||
Checks that archive exists and is readable.
|
||||
|
||||
* ``repack_archive (archive, archive_new, verbosity=0)``
|
||||
|
||||
|
||||
This function extracts the contents of the archive and packs them
|
||||
into archive_new.
|
||||
Checks that archive exists and is readable. Also checks that
|
||||
|
|
|
@ -4,7 +4,7 @@ Installation
|
|||
First, install the required software.
|
||||
|
||||
1. Python >= 2.7 from https://www.python.org/
|
||||
|
||||
|
||||
|
||||
Now install the application.
|
||||
|
||||
|
@ -15,20 +15,20 @@ Now install the application.
|
|||
2. Installation from source
|
||||
|
||||
a) Installation as root
|
||||
|
||||
|
||||
Run ``sudo python setup.py install`` to install patool.
|
||||
|
||||
|
||||
b) Installation as a normal user
|
||||
|
||||
|
||||
Run ``python setup.py install --home $HOME``. Note that you have
|
||||
to adjust your PATH and PYTHONPATH environment variables, e.g. by
|
||||
adding the commands ``export PYTHONPATH=$HOME/lib/python`` and
|
||||
``export PATH=$PATH:$HOME/bin`` to your shell configuration
|
||||
file.
|
||||
|
||||
|
||||
For more information look at the `Modifying Python's search path`_
|
||||
documentation.
|
||||
|
||||
|
||||
.. _Modifying Python's search path:
|
||||
http://docs.python.org/inst/search-path.html#SECTION000410000000000000000
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ b, u, i, center,
|
|||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||
article, aside, canvas, details, embed,
|
||||
figure, figcaption, footer, header, hgroup,
|
||||
article, aside, canvas, details, embed,
|
||||
figure, figcaption, footer, header, hgroup,
|
||||
menu, nav, output, ruby, section, summary,
|
||||
time, mark, audio, video {
|
||||
margin: 0;
|
||||
|
@ -19,7 +19,7 @@ time, mark, audio, video {
|
|||
vertical-align: baseline;
|
||||
}
|
||||
/* HTML5 display-role reset for older browsers */
|
||||
article, aside, details, figcaption, figure,
|
||||
article, aside, details, figcaption, figure,
|
||||
footer, header, hgroup, menu, nav, section {
|
||||
display: block;
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ table {
|
|||
}
|
||||
body {
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
line-height: 1.5;
|
||||
font-family: 'Helvetica Neue', Helvetica, Arial, serif;
|
||||
color: #000;
|
||||
}
|
||||
|
@ -118,14 +118,14 @@ th {
|
|||
|
||||
td {
|
||||
border: 1px solid #ebebeb;
|
||||
text-align: center;
|
||||
text-align: center;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
form {
|
||||
background: #f2f2f2;
|
||||
padding: 20px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -133,43 +133,43 @@ form {
|
|||
|
||||
h1 {
|
||||
font-size: 2.8em;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 22px;
|
||||
font-weight: bold;
|
||||
color: #303030;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
color: #d5000d;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 16px;
|
||||
color: #303030;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1em;
|
||||
color: #303030;
|
||||
}
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: .8em;
|
||||
color: #303030;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
font-weight: 300;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
@ -223,4 +223,4 @@ footer a {
|
|||
|
||||
.clearfix {display: inline-block;}
|
||||
* html .clearfix {height: 1%;}
|
||||
.clearfix {display: block;}
|
||||
.clearfix {display: block;}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* http://meyerweb.com/eric/tools/css/reset/
|
||||
/* http://meyerweb.com/eric/tools/css/reset/
|
||||
v2.0 | 20110126
|
||||
License: none (public domain)
|
||||
*/
|
||||
|
@ -11,8 +11,8 @@ b, u, i, center,
|
|||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||
article, aside, canvas, details, embed,
|
||||
figure, figcaption, footer, header, hgroup,
|
||||
article, aside, canvas, details, embed,
|
||||
figure, figcaption, footer, header, hgroup,
|
||||
menu, nav, output, ruby, section, summary,
|
||||
time, mark, audio, video {
|
||||
margin: 0;
|
||||
|
@ -23,7 +23,7 @@ time, mark, audio, video {
|
|||
vertical-align: baseline;
|
||||
}
|
||||
/* HTML5 display-role reset for older browsers */
|
||||
article, aside, details, figcaption, figure,
|
||||
article, aside, details, figcaption, figure,
|
||||
footer, header, hgroup, menu, nav, section {
|
||||
display: block;
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ table {
|
|||
/* LAYOUT STYLES */
|
||||
body {
|
||||
font-size: 1em;
|
||||
line-height: 1.5;
|
||||
line-height: 1.5;
|
||||
background: #e7e7e7 url(../images/body-bg.png) 0 0 repeat;
|
||||
font-family: 'Helvetica Neue', Helvetica, Arial, serif;
|
||||
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
|
||||
|
@ -227,14 +227,14 @@ th {
|
|||
|
||||
td {
|
||||
border: 1px solid #ebebeb;
|
||||
text-align: center;
|
||||
text-align: center;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
form {
|
||||
background: #f2f2f2;
|
||||
padding: 20px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -242,43 +242,43 @@ form {
|
|||
|
||||
h1 {
|
||||
font-size: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 22px;
|
||||
font-weight: bold;
|
||||
color: #303030;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
color: #d5000d;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 16px;
|
||||
color: #303030;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1em;
|
||||
color: #303030;
|
||||
}
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: .8em;
|
||||
color: #303030;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
font-weight: 300;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
|
@ -15,4 +15,3 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""Archive commands for the bsdcpio program."""
|
||||
from .cpio import extract_cpio, list_cpio, test_cpio, create_cpio
|
||||
|
||||
|
|
|
@ -15,4 +15,3 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""Archive commands for the lhasa program."""
|
||||
from .lha import extract_lzh
|
||||
|
||||
|
|
|
@ -36,4 +36,3 @@ def create_zpaq(archive, compression, cmd, verbosity, interactive, filenames):
|
|||
|
||||
# zpaq has no separate test mode, so use listing instead
|
||||
test_zpaq = list_zpaq
|
||||
|
||||
|
|
Loading…
Reference in New Issue