mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
* Corrected a problem triggered by wordperfect's deb: rpm can't deal with
files that have spaces, unless they are quoted. Thus, quote all filenames. * Handles empty directories now when converting to rpm.
This commit is contained in:
@@ -54,9 +54,15 @@ sub Convert { my ($self,$workdir,$nopatch,%fields)=@_;
|
||||
$filelist.="%config $fn\n";
|
||||
}
|
||||
else { # normal file
|
||||
$filelist.="$fn\n";
|
||||
# Filename must be quoted so rpm can handle
|
||||
# spaces.
|
||||
$filelist.="\"$fn\"\n";
|
||||
}
|
||||
}
|
||||
else {
|
||||
# Add directories too.
|
||||
$filelist.="%dir \"$fn\"\n";
|
||||
}
|
||||
}
|
||||
$fields{FILELIST}=$filelist;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user