Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
package.keywords cleanup [solved] eix-test-obsolete
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
ScytheMan
l33t
l33t


Joined: 30 Nov 2005
Posts: 605

PostPosted: Sat Jan 05, 2008 6:17 pm    Post subject: package.keywords cleanup [solved] eix-test-obsolete Reply with quote

Moin
Nachdem meine package.keywords list bald am Platzen ist, ich aber relativ wenig Lust auf manuelle Aufräumarbeit habe, wollte ich mal fragen ob es dafür ein Programm gibt, welches mir Abhilfe schafft.


Sollte ungefähr sowas können:

feststellen welches paket in der package.keywords ist
dann ebuilds der programme die davon abhängig sind klären
dort schauen welches die höchste benötigte version ist
und für den fall dass die höchste benötigte version schon stabil ist, den eintrag aus packages.keywords entfernen
(genial wär natürlich, wenn es dann zusätzlich schaut ob die datei in der worldlist vorhanden ist, um zu überprüfen ob der user das Programm immer testing haben will)

sollte es so ein programm geben oder ein script welches so funktioniert, immer her damit.

ansonsten muss ich mir so ein script mal selbst zusammenbasteln


danke schon mal für eure antworten

scytheman


Last edited by ScytheMan on Sat Jan 05, 2008 8:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
nilres
n00b
n00b


Joined: 26 Oct 2007
Posts: 35

PostPosted: Sat Jan 05, 2008 7:40 pm    Post subject: Re: package.keywords cleanup Reply with quote

ScytheMan wrote:


ansonsten muss ich mir so ein script mal selbst zusammenbasteln



Und hie reinstellen hätte da auch sehr großes Interesse dran.

mfg nils
Back to top
View user's profile Send private message
tost
Guru
Guru


Joined: 10 Dec 2005
Posts: 506

PostPosted: Sat Jan 05, 2008 7:54 pm    Post subject: Reply with quote

Hilft zwar nicht und löst euer Problem, dennoch erhöht es die Übersichtlichkeit und ist gerade bei vielen Einträgen sehr sinnvoll.

Absatz: 5.2 Konfigurationsdateien als Verzeichnis
http://www.gentoo.de/main/de/portage-2.1.xml

Grüße
tost
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Sat Jan 05, 2008 7:55 pm    Post subject: Reply with quote

Warum willst du es denn so umständlich mit den Abhängigkeiten machen?
Überprüfe doch einfach für jedes Paket, ob es schon Stable ist in deiner Architektur.

Aber ich bin mir sicher, dass es da schon was gibt.

Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
ScytheMan
l33t
l33t


Joined: 30 Nov 2005
Posts: 605

PostPosted: Sat Jan 05, 2008 8:16 pm    Post subject: Reply with quote

Finswimmer wrote:
Warum willst du es denn so umständlich mit den Abhängigkeiten machen?
Überprüfe doch einfach für jedes Paket, ob es schon Stable ist in deiner Architektur.

Aber ich bin mir sicher, dass es da schon was gibt.

Tobi


ich bin jemand der versionslose einträge in die package.keywords setzt.

daher dachte ich mir das vom programmablauf so:

nimm eine Zeile aus package.keywords
entferne das ~arch
Prüfe nach ob das Paket im Worldfile ist
falls ja:
nächste Zeile
falls nein:
schau per euse d $zeile nach welche pakete das paket brauchen
suche in den ebuilds des pakets danach welche version genau benötigt wird
nimm die höchste version und überprüfe ob die stable ist
falls ja: lösche die zeile
falls nein: zeile bleibt
nächste zeile



edit: eix-test-obsolete schaut recht nett aus, danke :)


Last edited by ScytheMan on Sat Jan 05, 2008 8:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
Evildad
Guru
Guru


Joined: 15 Apr 2004
Posts: 475

PostPosted: Sat Jan 05, 2008 8:16 pm    Post subject: Reply with quote

eix-test-obsolete
zeigt dir die obsoleten packages an aber entfernt diese nicht automatisch.
Das musst Du dann schon von Hand machen.

Grüsse
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2546
Location: Konradsreuth (Germany)

PostPosted: Sat Jan 05, 2008 9:30 pm    Post subject: Reply with quote

Ich hab da mal ein Script dazu geschrieben: check_keywords. Gibt's da: http://nasauber.de/downloads/gentoo/#check_keywords
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Sun Jan 06, 2008 11:03 am    Post subject: Reply with quote

Auf http://www.mathematik.uni-wuerzburg.de/~vaeth/gentoo/index.html gibt es einige sehr nützliche Tools für gentoo - für das hier diskutierte Problem könnte keywords.tar.gz nützlich sein (aber auch viele andere Tools dort sind einen Blick wert).
_________________
Never argue with an idiot. He brings you down to his level, then beats you with experience.

How-To: Daten verschlüsselt auf DVD speichern.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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