* extfs/patchfs.in (openread): Use quoted $archive when opening
archives. (list): Set $archive to quoted $_[0].
Этот коммит содержится в:
родитель
e12b5ddcb6
Коммит
76a86209d4
@ -1,3 +1,9 @@
|
|||||||
|
2002-12-18 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||||
|
|
||||||
|
* extfs/patchfs.in (openread): Use quoted $archive when opening
|
||||||
|
archives.
|
||||||
|
(list): Set $archive to quoted $_[0].
|
||||||
|
|
||||||
2002-12-16 Pavel Roskin <proski@gnu.org>
|
2002-12-16 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* extfs/rpm: Don't check package signatures - it creates a lot
|
* extfs/rpm: Don't check package signatures - it creates a lot
|
||||||
|
@ -46,7 +46,7 @@ sub error
|
|||||||
# list files affected by patch
|
# list files affected by patch
|
||||||
sub list
|
sub list
|
||||||
{
|
{
|
||||||
my ($archive)=@_;
|
my ($archive)=(quotemeta $_[0]);
|
||||||
my ($state,$pos,$npos,$time);
|
my ($state,$pos,$npos,$time);
|
||||||
my ($f,$fsrc,$fdst,$prefix);
|
my ($f,$fsrc,$fdst,$prefix);
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ sub list
|
|||||||
|
|
||||||
import Date::Parse if ($parsedates);
|
import Date::Parse if ($parsedates);
|
||||||
|
|
||||||
# state==1 means diff contents, state==0 mens comments
|
# state==1 means diff contents, state==0 means comments
|
||||||
$state=1; $f="";
|
$state=1; $f="";
|
||||||
while (<I>) {
|
while (<I>) {
|
||||||
if (/^-{3} /) {
|
if (/^-{3} /) {
|
||||||
@ -193,9 +193,9 @@ sub openread
|
|||||||
|
|
||||||
$_=`$file $archive`;
|
$_=`$file $archive`;
|
||||||
if (/bzip/) {
|
if (/bzip/) {
|
||||||
open I, "$bzip -dc $ARGV[1] |";
|
open I, "$bzip -dc $archive |";
|
||||||
} elsif (/gzip/) {
|
} elsif (/gzip/) {
|
||||||
open I, "$gzip -dc $ARGV[1] |";
|
open I, "$gzip -dc $archive |";
|
||||||
} else {
|
} else {
|
||||||
open I, "< $ARGV[1]";
|
open I, "< $ARGV[1]";
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user