comp:zypp2smart
no way to compare when less than two revisions
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— | comp:zypp2smart [2009-02-14 14:56] (aktuell) – angelegt werner | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Zypper-Repos an Smart übergeben ====== | ||
+ | Heute saß ich am PC, tippte '' | ||
+ | |||
+ | Also: wie kann ich '' | ||
+ | |||
+ | <code bash> | ||
+ | #!/bin/bash | ||
+ | |||
+ | # this script is intended to copy zypper repositories to smart sources | ||
+ | # written by Werner Flamme < | ||
+ | |||
+ | ZYPPERDIR=/ | ||
+ | SMARTDIR=/ | ||
+ | |||
+ | # loop over all zypper repositories | ||
+ | for DAT in $ZYPPERDIR/ | ||
+ | # do we have to care about the repo? | ||
+ | grep -q ' | ||
+ | |||
+ | # get the name of the repo, so that it will be understood by smart | ||
+ | FIRSTPART=$(basename " | ||
+ | # where do we write to? | ||
+ | NEWFILE=" | ||
+ | # write the channel' | ||
+ | echo " | ||
+ | echo "Alias = $FIRSTPART" | ||
+ | # get the zypper repo info we need | ||
+ | BASEURL=$(grep ' | ||
+ | REPOTYPE=$(grep ' | ||
+ | echo " | ||
+ | echo " | ||
+ | done | ||
+ | </ | ||
+ | |||
+ | Damit erstelle ich aus jedem aktiven Zypper-Repository einen Smart-Kanal. Und zwar recht schnell... ;-) | ||
+ | |||
+ | Anschließend noch ein '' |
comp/zypp2smart.txt · Zuletzt geändert: 2009-02-14 14:56 von werner