Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 38 lines (31 sloc) 1.07 kB
3137926 @gregkh del_packages
authored
1 #!/bin/bash
2
3 # A script to help manage the openSUSE:Tumbleweed project
4 # (C) 2010 Greg Kroah-Hartman <gregkh@suse.de>
5 # Released under the GPL v2.
6 #
7 # This script reads the file 'package_list' and runs 'check_package'
8 # on all of the packages listed in it.
9 #
10 # You can specify a file that lists the packages on the command line
11 # if you do not want to check the default list (which is 'package_list')
12 #
13 # Any questions/comments/patches are gladly welcome, just send to:
14 # Greg Kroah-Hartman <gregkh@suse.de>
15 #
16
17 # Default package list filename. Override it on the command line
18 # if you want something else
19
20 if [ $# -ne 1 ]; then
21 echo "need a name of a file full of packages to delete"
22 fi
23
24 FILE="$1"
25
26 echo "# reading list of packages from file '$FILE'"
27
28 while read line
29 do
30 # remove lines that start with a # and all whitespace in the line
31 line=`echo $line | sed -e '/^#/d' | sed -e 's/^[ \t]*//;s/[ \t]*$//'`
32 if [ "$line" != "" ]
33 then
7be5a4c @gregkh del_packages: fix up script to work properly
authored
34 echo "echo \"deleting $line\""
35 echo "osc rdelete openSUSE:Tumbleweed:Testing $line -m \"delete the package\""
3137926 @gregkh del_packages
authored
36 fi
37 done < $FILE
Something went wrong with that request. Please try again.