mirror of
https://github.com/fspc/dswim.git
synced 2025-02-22 16:43:23 -05:00
Redoing some \w regexp fixes .. was a + without a \
This commit is contained in:
parent
d1be7ac479
commit
c6e0099f51
12
SWIM/Deb.pm
12
SWIM/Deb.pm
@ -59,8 +59,8 @@ sub deb_package {
|
|||||||
# SITUATION 0 #
|
# SITUATION 0 #
|
||||||
###############
|
###############
|
||||||
if (m,\.\./|^\.\.$,) {
|
if (m,\.\./|^\.\.$,) {
|
||||||
#if ($_ !~ m,/[\w-+]+/[\.\$\^\+\?\*\[\]\w-]*$,) {
|
#if ($_ !~ m,/[\w\+-]+/[\.\$\^\+\?\*\[\]\w-]*$,) {
|
||||||
if ($_ !~ m,/(\w-+)+/[\.\$\^\+\?\*\[\]\w-]*$,) {
|
if ($_ !~ m,/[\w\+-]+/[\.\$\^\+\?\*\[\]\w-]*$,) {
|
||||||
my $dd; tr/\/// ? ($dd = tr/\///) : ($dd = 1);
|
my $dd; tr/\/// ? ($dd = tr/\///) : ($dd = 1);
|
||||||
my @pwd = split(m,/,,$pwd);
|
my @pwd = split(m,/,,$pwd);
|
||||||
s,\.\./,,g;
|
s,\.\./,,g;
|
||||||
@ -952,8 +952,8 @@ sub menuo {
|
|||||||
my $name = $2;
|
my $name = $2;
|
||||||
while (<MENU>) {
|
while (<MENU>) {
|
||||||
#print "$_\n";
|
#print "$_\n";
|
||||||
#if (m,^usr\/lib\/menu\/(.*[\w-\+\.]$),) {
|
#if (m,^usr\/lib\/menu\/(.*[\w\+\.-]$),) {
|
||||||
if (m,^usr\/lib\/menu\/(.*(\w-\+\.)$),) {
|
if (m,^usr\/lib\/menu\/(.*(\w\+\.-)$),) {
|
||||||
print "#####menu for $name($1)#####\n";
|
print "#####menu for $name($1)#####\n";
|
||||||
system "$dpkg_deb --fsys-tarfile $argument | $tar xO $_";
|
system "$dpkg_deb --fsys-tarfile $argument | $tar xO $_";
|
||||||
print "\n";
|
print "\n";
|
||||||
@ -970,8 +970,8 @@ sub menuo {
|
|||||||
open(MENU,"$tmp/fields.deb");
|
open(MENU,"$tmp/fields.deb");
|
||||||
my $name = $2;
|
my $name = $2;
|
||||||
while (<MENU>) {
|
while (<MENU>) {
|
||||||
#if (m,^usr\/lib\/menu\/(.*[\w-\+\.]$),) {
|
#if (m,^usr\/lib\/menu\/(.*[\w\+\.-]$),) {
|
||||||
if (m,^usr\/lib\/menu\/(.*(\w-\+\.)$),) {
|
if (m,^usr\/lib\/menu\/(.*(\w\+\.-)$),) {
|
||||||
print "#####menu for $name($1)#####\n";
|
print "#####menu for $name($1)#####\n";
|
||||||
system "$ar -p $argument data.tar.gz | $tar xOz $_";
|
system "$ar -p $argument data.tar.gz | $tar xOz $_";
|
||||||
print "\n";
|
print "\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user