Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rework the package list

Now it is all one list, with comments, no need to keep things
in two different places.
  • Loading branch information...
commit 9b4fa722e66ce47a7182c6110f5683feee50d779 1 parent 139ec24
@gregkh authored
Showing with 100 additions and 167 deletions.
  1. +9 −92 check_packages
  2. +91 −0 package_list
  3. +0 −75 packages
View
101 check_packages
@@ -4,103 +4,20 @@
# (C) 2010 Greg Kroah-Hartman <gregkh@suse.de>
# Released under the GPL v2.
#
-# This script checks the links that are set up for a number of
-# Tumbleweed packages. Tumbleweed works either by having packages
-# submitted to it, or by linking to a "known stable" repository in the
-# build service. This script checks the packages that are links and
-# verifies that they are up to date. If they are not up to date, the
-# proper 'osc' command is printed to output to be run by hand if
-# necessary.
-#
-# You can also use this script to create linked packages by adding them
-# to the tool, and then running the 'osc' command printed out to create
-# the necessary link.
-#
-# To use this script, go to the bottom, add the repo and packages in
-# that repo like the existing ones, and then call "compare_versions" to
-# check the packages.
-#
-# TODO:
-# - Possibly accept the packages and repos as an add-on file, to
-# make it a bit more flexible and faster instead of checking all
-# packages all the time. Possibliy use the check_package script
-# which does handle this from the command line instead.
+# This script reads the file 'package_list' and runs 'check_package'
+# on all of the packages listed in it.
#
# Any questions/comments/patches are gladly welcome, just send to:
# Greg Kroah-Hartman <gregkh@suse.de>
#
-# Main Tumbleweed repository location
-TUMBLE_REPO="openSUSE:Tumbleweed"
-
-
-# expects:
-# $PACKAGE to be set to the package name to be checked
-# $REPO to be set to the base repo name
-compare_version() {
-
- EXISTING=`osc cat $TUMBLE_REPO/$PACKAGE/_link 2> /dev/null | grep rev | cut -f 4 -d ' ' | cut -f 2 -d '=' | cut -f 1 -d '=' | sed -e 's/\"//g'`
- #echo $EXISTING
-
- NEW=`osc log --csv $REPO/$PACKAGE 2> /dev/null | head -n 1 | cut -f 4 -d '|'`
- #echo $NEW
-
- if [ "$EXISTING" = "" ]
- then
- echo "# $PACKAGE is not in Tumbleweed, add it by doing:"
- fi
-
- if [ "$NEW" = "$EXISTING" ]
+while read line
+do
+ # remove lines that start with a # and all whitespace in the line
+ line=`echo $line | sed -e '/^#/d' | sed -e 's/^[ \t]*//;s/[ \t]*$//'`
+ if [ "$line" != "" ]
then
- echo "# $PACKAGE is up to date."
- else
- echo "osc linkpac -f -r $NEW $REPO $PACKAGE $TUMBLE_REPO"
+ ./check_package $line
fi
-}
-
-# expects:
-# $PACKAGES to be a list of packages to be checked
-# $REPO to be set to the base repo name
-compare_versions() {
- for PACKAGE in $PACKAGES
- do
- compare_version
- done
-}
-
-#
-# Change things here. Add new repositories and packages at the end and
-# then call "compare_versions"
-#
-
-REPO="Kernel:stable"
-PACKAGES="kernel-source kernel-firmware preload systemtap elfutils"
-compare_versions
-
-REPO="openSUSE:Factory"
-PACKAGES="usbutils mkvtoolnix libebml libmatroska virtualbox-ose"
-compare_versions
-
-REPO="network:samba:STABLE"
-PACKAGES="cifs-utils ctdb keyutils libiniparser samba samba-doc"
-compare_versions
-
-REPO="devel:tools:scm"
-PACKAGES="git tig"
-compare_versions
-
-REPO="filesystems"
-PACKAGES="fuse"
-compare_versions
-
-REPO="security:OpenVAS:STABLE:v3"
-PACKAGES="gsd greenbone-security-assistant libmicrohttpd openvas-administrator openvas-cli openvas-client openvas-libraries openvas-manager openvas-scanner"
-compare_versions
-
-REPO="Apache"
-PACKAGES="apache2 libapr1 GeoIP"
-compare_versions
+done < package_list
-REPO="server:mail"
-PACKAGES="offlineimap"
-compare_versions
View
91 package_list
@@ -0,0 +1,91 @@
+# This is a list of the source of the packages that are links in the
+# openSUSE:Tumbleweed repo.
+#
+# The check_packages script takes this list and runs it through the
+# 'check_package' script to see if the link is up to date or not.
+#
+# Lines starting with a '#' are ignored, as is whitespace.
+#
+
+#
+# Kernel
+#
+# The kernel package has one main package:
+Kernel:stable/kernel-source
+# Then the rest of the kernel packages are just links to that one in
+# order to handle the multiple parts of it. This means the following
+# list of packages should not be touched at all, they get automatically
+# generated:
+#
+# kernel-debug
+# kernel-default
+# kernel-desktop
+# kernel-docs
+# kernel-ec2
+# kernel-pae
+# kernel-syms
+# kernel-trace
+# kernel-vanilla
+# kernel-vmi
+# kernel-xen
+
+Kernel:stable/kernel-firmware
+Kernel:stable/preload
+# preload wants a new systemtap and elfutils package as well:
+Kernel:stable/systemtap
+Kernel:stable/elfutils
+
+
+#
+# Packages linked from Factory:
+#
+openSUSE:Factory/usbutils
+openSUSE:Factory/mkvtoolnix
+openSUSE:Factory/libebml
+openSUSE:Factory/libmatroska
+openSUSE:Factory/virtualbox-ose
+
+#
+# Latest "stable" samba packages:
+#
+network:samba:STABLE/cifs-utils
+network:samba:STABLE/ctdb
+network:samba:STABLE/libiniparser
+network:samba:STABLE/samba
+network:samba:STABLE/samba-doc
+
+#
+# git is good
+#
+devel:tools:scm/git
+devel:tools:scm/tig
+
+#
+# fuse is also nice to keep up to date
+#
+filesystems/fuse
+
+#
+# Latest "stable" openvas:
+#
+security:OpenVAS:STABLE:v3/gsd
+security:OpenVAS:STABLE:v3/greenbone-security-assistant
+security:OpenVAS:STABLE:v3/libmicrohttpd
+security:OpenVAS:STABLE:v3/openvas-administrator
+security:OpenVAS:STABLE:v3/openvas-cli
+security:OpenVAS:STABLE:v3/openvas-client
+security:OpenVAS:STABLE:v3/openvas-libraries
+security:OpenVAS:STABLE:v3/openvas-manager
+security:OpenVAS:STABLE:v3/openvas-scanner
+
+#
+# Latest "stable" apache2
+#
+Apache/apache2
+Apache/libapr1
+Apache/GeoIP
+
+#
+# can't live without offlineimap
+#
+server:mail/offlineimap
View
75 packages
@@ -1,75 +0,0 @@
-Packages and where they come from:
-
-Kernel:stable
- The kernel is wierd, only update the kernel-source package, all
- others are linked to it and will automatically rebuild on their
- own.
-
- kernel-source
- kernel-firmware
- preload
- systemtap
- elfutils
-
- links:
- kernel-debug
- kernel-default
- kernel-desktop
- kernel-docs
- kernel-ec2
- kernel-pae
- kernel-syms
- kernel-trace
- kernel-vanilla
- kernel-vmi
- kernel-xen
-
-
-home:tiwai
-devel:tools:scm
- git
- tig
-
-
-openSUSE:Factory
- mkvtoolnix
- libebml
- libmatroska
- usbutils
- virtualbox-ose
-
-network:samba:STABLE
- cifs-utils
- ctdb
- keyutils
- libiniparser
- samba
- samba-doc
-
-security:OpenVAS:STABLE:v3
- gsd
- greenbone-security-assistant
- libmicrohttpd
- openvas-administrator
- openvas-cli
- openvas-client
- openvas-libraries
- openvas-manager
- openvas-scanner
-
-filesystems
- fuse
-
-Apache
- libapr1
- GeoIP
- apache2
-
-server:mail
- offlineimap
-
-Stuff submitreq to be accepted:
- bluez
- mozilla:Factory/MozillaThunderbird
- mozilla:Factory/mozilla-nss
- mozilla:Factory/mozilla-nspr
Please sign in to comment.
Something went wrong with that request. Please try again.