mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
* Patch from Michael Barabanov <baraban@fsmlabs.com> to make -n work by
preventing rpm from expanding stuff like %S in the uuencoded scripts.
This commit is contained in:
7
debian/changelog
vendored
7
debian/changelog
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
alien (6.58) unstable; urgency=low
|
||||||
|
|
||||||
|
* Patch from Michael Barabanov <baraban@fsmlabs.com> to make -n work by
|
||||||
|
preventing rpm from expanding stuff like %S in the uuencoded scripts.
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Sun, 12 Mar 2000 15:39:07 -0800
|
||||||
|
|
||||||
alien (6.57) unstable; urgency=low
|
alien (6.57) unstable; urgency=low
|
||||||
|
|
||||||
* Corrected priority in control file to optional; ftp admins, please take
|
* Corrected priority in control file to optional; ftp admins, please take
|
||||||
|
|||||||
@@ -18,11 +18,14 @@ sub FixFields { my ($self,%fields)=@_;
|
|||||||
my $field;
|
my $field;
|
||||||
foreach $field ('POSTINST', 'POSTRM', 'PREINST', 'PRERM') {
|
foreach $field ('POSTINST', 'POSTRM', 'PREINST', 'PRERM') {
|
||||||
if ($fields{$field}) {
|
if ($fields{$field}) {
|
||||||
|
# Rpm expands %S, so escape such things.
|
||||||
|
` my $f = pack("u",$fields{$field});
|
||||||
|
$f =~ s/%/%%/g;
|
||||||
$fields{$field}=
|
$fields{$field}=
|
||||||
"set -e\n".
|
"set -e\n".
|
||||||
"mkdir /tmp/alien.\$\$\n".
|
"mkdir /tmp/alien.\$\$\n".
|
||||||
qq{perl -pe '\$_=unpack("u",\$_)' << '__EOF__' > /tmp/alien.\$\$/script\n}.
|
qq{perl -pe '\$_=unpack("u",\$_)' << '__EOF__' > /tmp/alien.\$\$/script\n}.
|
||||||
pack("u",$fields{$field}).
|
$f.
|
||||||
"__EOF__\n".
|
"__EOF__\n".
|
||||||
"chmod 755 /tmp/alien.\$\$/script\n".
|
"chmod 755 /tmp/alien.\$\$/script\n".
|
||||||
"/tmp/alien.\$\$/script \"\$@\"\n".
|
"/tmp/alien.\$\$/script \"\$@\"\n".
|
||||||
|
|||||||
Reference in New Issue
Block a user