+2006-12-13 Paul Varner <fuzzyray@gentoo.org>
+ * revdep-rebuild: Fix handling of /etc/portage/package.mask (Bug
+ #158025) Thanks to Wolfram Schlich for the patch.
+
2006-12-12 Paul Varner <fuzzyray@gentoo.org>
* equery: Add --tree option to equery files command. (Bug #62898)
Thanks to scope for the patch.
continue
fi
# Otherwise mask the other SLOTTED versions and check for latest
- if [ -f /etc/portage/package.mask ]
+ if [ -e /etc/portage/package.mask ]
then
mv -f /etc/portage/package.mask /etc/portage/package.mask.revdep-rebuild.backup
else
done
best_visible=$(portageq best_visible $PORTAGE_ROOT $PKG)
[ "x" != "x$best_visible" ] && echo $best_visible
- if [ -f /etc/portage/package.mask.revdep-rebuild.backup ]
+ rm -f /etc/portage/package.mask
+ if [ -e /etc/portage/package.mask.revdep-rebuild.backup ]
then
mv -f /etc/portage/package.mask.revdep-rebuild.backup /etc/portage/package.mask
- else
- rm -f /etc/portage/package.mask
fi
done > $LLIST.4_ebuilds
echo -e " done.\n ($LLIST.4_ebuilds)"