Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- set -e
- #apt-get install debtree
- cd /tmp
- cp /usr/bin/debtree .
- patch -d/ -p0 <<'EOF'
- --- /usr/bin/debtree 2012-06-21 18:30:16.000000000 -0400
- +++ /tmp/debtree 2014-10-23 21:32:45.566637008 -0400
- @@ -334,6 +334,18 @@
- for my $rdep (@{ $$pinfo{RevDependsList} }) {
- my $pname = $$rdep{ParentPkg}{Name};
- + my $last_or = '';
- + my $this_or = '';
- + my $is_alt = 0;
- + for my $fdep (@{ $$rdep{ParentVer}{DependsList} }) {
- + my $fpname = $$fdep{TargetPkg}{Name};
- + $last_or = $this_or;
- + $this_or = (($$fdep{CompType} & AptPkg::Dep::Or) ? '|' : ',');
- + next if $fpname ne $$pinfo{Name};
- + next if $last_or ne '|' and $this_or ne '|';
- + $is_alt = 1;
- + }
- + next if $is_alt == 1;
- my $dtype = get_type(0 + $$rdep{DepType});
- next unless grep(/^$dtype$/, @rdtypes);
- EOF
- /tmp/debtree --show-rdeps --rdeps-depth=10 --max-rdeps=100 --max-depth=0 --no-recommends --no-provides --no-versions --condense systemd >systemd-rdeps.dot
- sed -i '/\(gnome\|-dbg\|plugin\|plug-in\)/d' systemd-rdeps.dot
- dot -T png -o systemd-rdeps.png systemd-rdeps.dot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement