diff --git a/mozilla/xpinstall/packager/pkgcp.pl b/mozilla/xpinstall/packager/pkgcp.pl index 0c3b0afd2b7..192bf5ed916 100755 --- a/mozilla/xpinstall/packager/pkgcp.pl +++ b/mozilla/xpinstall/packager/pkgcp.pl @@ -211,7 +211,7 @@ sub do_delete my ($targetpath) = $_[0]; my ($targetcomp) = $_[1]; my ($targetfile) = $_[2]; - my ($target) = "$targetpath$PD$targetcomp$PD$targetfile"; + my ($target) = ($flat) ? "$targetpath$PD$targetfile" : "$targetpath$PD$targetcomp$PD$targetfile"; ($debug >= 2) && print "do_delete():\n"; ($debug >= 1) && print "-$targetfile\n";