Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
little script for changed ebuilds after "emerge sync"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
BigMichi1
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2003
Posts: 82
Location: Dresden, Deutschland

PostPosted: Sun Jan 01, 2006 1:46 pm    Post subject: little script for changed ebuilds after "emerge sync&qu Reply with quote

because i am running a ~x86 and want to know if an ebuild changes, but is not recognized by emerge -Du world, i wrote this little script. it will print changes which doesn't effect keyword or header changes in ebuilds. it is only useful after you have done an emerge -Du world.
so here it is, it's not much and may not be perfect.
Code:
#!/bin/bash

liste=`find /var/db/pkg/ -type f -name "*.ebuild"`

for i in ${liste}; do
    buildname=`echo "${i}" | cut -f 7- -d '/'`
    kategorie=`echo "${i}" | cut -f 5 -d '/'`
    package=`echo ${buildname} | sed -e "s/\(-\([0-9.]\)\)\(.*\).ebuild$//"`
    filename="/usr/portage/${kategorie}/${package}/${buildname}"
    if [ -e "$filename" ]; then
        lines=`diff "${i}" "${filename}" | grep -v '$Header' | grep -v 'KEYWORDS=' | grep -v '\-\-\-' | grep -v "[0-9][acd][0-9]"`
        if [ -n "${lines}" ]; then
            zwischen=`echo ${buildname} | sed 's:\.ebuild::'`
            echo "     ===== ${kategorie}/${zwischen} ====="
            echo " "
            echo "${lines}"
            echo "-----------------------------------------------------------------------------------------------"
        fi
    fi
done

_________________
Internet is toll, da trifft man Leute von denen man nie gedacht hätte das es Sie gibt.
Back to top
View user's profile Send private message
mortar
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2005
Posts: 131

PostPosted: Wed May 03, 2006 5:34 am    Post subject: Reply with quote

Nice little app.

I believe esearch does a similar thing, if you run the command esync after installation it will run an emerge sync then list the updated packages.

Code:
*  app-portage/esearch
      Latest version available: 0.7.1
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 30 kB
      Homepage:    http://david-peter.de/esearch.html
      Description: Replacement for 'emerge --search' with search-index
      License:     GPL-2


Works fairly well, apart from the fact, a couple of times, in it's process emerge sync seems to fail for some reason, where as it never seems to fail if you run it manually, but that's just my experience anyway.
Back to top
View user's profile Send private message
inode77
Veteran
Veteran


Joined: 20 Jan 2004
Posts: 1303
Location: Heart of Europe

PostPosted: Thu Jun 22, 2006 10:48 pm    Post subject: Reply with quote

Really like it ;-)
Code:
* app-portage/eix
     Available versions:  0.5.1-r2 0.5.5
     Installed:           0.5.5
     Homepage:            http://dev.croup.de/proj/eix
     Description:         Small utility for searching ebuilds with indexing for fast results

You're looking to do something like this?
Code:
 eix-sync
 * Running emerge --sync ...                                                                                                                       [ ok ]
 * Running update-eix ...                                                                                                                          [ ok ]
Diffing databases (11128 - 11130 packages)
[N] == dev-libs/libcdio (0.77): A library to encapsulate CD-ROM reading and control
[U] == dev-util/catalyst (2.0_rc48): Gentoo Linux official release metatool
[N] == mail-client/sylpheed-claws (2.3.0): Bleeding edge version of Sylpheed
[N] == media-libs/libcddb (1.2.1): A library for accessing a CDDB server
[N] == net-wireless/ussp-push (0.9): OBEX object push client for Linux
    << sys-libs/libsystem (none): Darwin Libsystem, a collection of core libs similar to glibc on linux
[U] == x11-misc/xscreensaver (4.24-r1): A modular screen saver and locker for the X Window System
[U] >> app-laptop/hdapsd (20060409) [1]: IBM ThinkPad Harddrive Active Protection disk head parking daemon
[N] >> dev-ruby/ruby-oci8 (none): A Ruby extension library to use Oracle
[U] >> media-plugins/audacious-xosd (0.2) [1]: Audacious Plug-in for X On Screen Display.
Back to top
View user's profile Send private message
Beefrum
Apprentice
Apprentice


Joined: 23 May 2006
Posts: 234

PostPosted: Fri Jun 23, 2006 10:36 am    Post subject: Reply with quote

Und wie immer. Not seeing the situation in wich these utilities don't do what you would expect them to do :roll:
_________________
:? Give adaptive answers to unknown problems!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum