Skip to content

Commit

Permalink
adds Cwd paths from packages in expected list
Browse files Browse the repository at this point in the history
problem initially reported by zhuk@ some times ago

with it, sysclean takes care of packages like
icu4c-wwwdata where files are installed inside
/var/www/usr/local/share/icu.
  • Loading branch information
semarie committed Jan 17, 2021
1 parent 2a3d587 commit d9d1071
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sysclean.pl
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,21 @@ sub walk_sysclean
{
}

package OpenBSD::PackingElement::Cwd;

sub walk_sysclean
{
use File::Basename;

my ($item, $pkgname, $sc) = @_;
my $path = $item->name;

do {
$sc->{expected}{$path} = 1;
$path = dirname($path);
} while ($path ne "/");
}

package OpenBSD::PackingElement::FileObject;
sub walk_sysclean
{
Expand Down

0 comments on commit d9d1071

Please sign in to comment.