Revision d9426abc
Added by Ermal LUÇI over 14 years ago
etc/inc/pkg-utils.inc | ||
---|---|---|
453 | 453 |
$raw_depends_list = array_values(preg_grep("/\@pkgdep/", $slaveout)); |
454 | 454 |
if($raw_depends_list != "") { |
455 | 455 |
foreach($raw_depends_list as $adepend) { |
456 |
$working_depend = explode(" ", $adepend);
|
|
456 |
$working_depend = explode(" ", trim($adepend, "\n"));
|
|
457 | 457 |
if (substr($working_depend[1], -4) != ".tbz") |
458 | 458 |
$depend_filename = $working_depend[1] . $pkg_extension; |
459 | 459 |
else |
... | ... | |
825 | 825 |
$info = ""; |
826 | 826 |
exec("/usr/sbin/pkg_info -qrx {$pkg}", $info); |
827 | 827 |
remove_freebsd_package($pkg); |
828 |
$static_output .= "done.\n"; |
|
829 |
update_output_window($static_output); |
|
828 | 830 |
foreach($info as $line) { |
829 |
$depend = trim(str_replace("@pkgdep", "", $line)); |
|
831 |
$depend = trim(str_replace("@pkgdep", "", $line), " \n");
|
|
830 | 832 |
delete_package($depend); |
831 | 833 |
} |
832 |
$static_output .= "done.\n"; |
|
833 |
update_output_window($static_output); |
|
834 | 834 |
|
835 | 835 |
return; |
836 | 836 |
} |
Also available in: Unified diff
More safety belts.