Code: Select all
i_dist() {
set_ifs
echo $dbpkg_files | \
while read db
do
for N_portage_dirs in ${!portage_dirs[@]}
do
for file in `cat ${portage_dirs[$N_portage_dirs]}/${db/-[0-9]*/}/Manifest 2>/dev/null | grep DIST | awk ' BEGIN { ORS=" " } { print $2 } '`
do
if [ -e ${portage_db}/${db}/SRC_URI ]
then
grep $file ${portage_db}/${db}/SRC_URI >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo $db ${portage_db}/${db}/SRC_URI $file
fi
else
# Some packages do not create SRC_URI
if [ -e ${portage_db}/${db}/environment.bz2 ]
then
bunzip2 <${portage_db}/${db}/environment.bz2 | grep $file >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo $db ${portage_db}/${db}/environment.bz2 $file
fi
fi
fi
done
done
done | \
awk '{print $3}'
reset_ifs
}
I am sorry to find that out. I haven't been maintaining this, I use it to clean files and I worked on it initially when I found it wasn't working and now again when I found out that it was deleting x11-driver files every time I ran it.loftwyr wrote:You maybe a little late with that update as all the links on the first page are dead.
Are you taking over maintenance? If so, where can we get the full package?
It would be a great idea to upload your version to Github. It's very easy to use.GladRags wrote:I am sorry to find that out. I haven't been maintaining this, I use it to clean files and I worked on it initially when I found it wasn't working and now again when I found out that it was deleting x11-driver files every time I ran it.loftwyr wrote:You maybe a little late with that update as all the links on the first page are dead.
Are you taking over maintenance? If so, where can we get the full package?
Anyways, here is a link to the current version that I have. http://www.mediafire.com/file/mymxzilkm ... 0.6beta.sh
