I have made the following changes intended for :
  CE:MW:Shared / ssu

Please review and accept or decline.
BOSS has already run some checks on this request.
See the "Messages from BOSS" section below.

https://build.pub.meego.com//request/show/7452

Thank You,
Marko Saukko

[This message was auto-generated]

---

Request # 7452:

Messages from BOSS:

State: review at 2012-11-27T15:01:25 by bossbot

Reviews:
       accepted by bossbot : Prechecks succeeded.
       new for CE-maintainers : Please replace this text with a review and 
approve/reject the review (not the SR). BOSS will take care of the rest

Changes:
  submit: home:sage:branches:CE:MW:Shared / ssu -> CE:MW:Shared / ssu
  
changes files:
--------------
--- ssu.changes
+++ ssu.changes
@@ -0,0 +1,4 @@
+* Tue Nov 27 2012 Marko Saukko <[email protected]> - 0.16
+- Added -tools subpackage
+- Fixed package obsoleting itself in .spec
+

old:
----
  ssu-0.15.tar.gz

new:
----
  ssu-0.16.tar.gz

spec files:
-----------
--- ssu.spec
+++ ssu.spec
@@ -1,5 +1,5 @@
 Name: ssu
-Version: 0.15
+Version: 0.16
 Release: 1
 Summary: SSU enabler for RND
 Group: System/Base
@@ -13,8 +13,8 @@
 Requires(pre): shadow-utils
 Requires(postun): shadow-utils
 Requires: ssu-vendor-data
-Obsoletes: libssu
-Provides: libssu
+Obsoletes: libssu < %{version}
+Provides: libssu = %{version}
 
 %description
 %{summary}.
@@ -79,6 +79,20 @@
 %defattr(-,root,root,-)
 /opt/tests/%{name}
 
+
+%package tools
+Summary: Tools for %{name}
+Group: Development/Libraries
+Requires: rpm
+
+%description tools
+%{summary}.
+
+%files tools
+%defattr(-,root,root,-)
+%attr(0755, -, -) /usr/sbin/ssu-repos.sh
+
+
 %prep
 %setup -q
 

other changes:
--------------

++++++ ssu-0.15.tar.gz -> ssu-0.16.tar.gz
--- ssu.pro
+++ ssu.pro
@@ -10,7 +10,7 @@
     SUBDIRS += ssuconfperm
 }
 
-SUBDIRS += tests
+SUBDIRS += tests tools
 
 rndssucli.depends = libssu
 rndregisterui.depends = libssu
--- tools
+++ tools
+(directory)
--- tools/ssu-repos.sh
+++ tools/ssu-repos.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+function repo_clean {
+  REPO_DIR=/etc/zypp/repos.d/
+  TMP_DIR=${REPO_DIR}/old/
+
+  mkdir -p ${TMP_DIR}
+
+  for REPO_FILE in `ls -1 ${REPO_DIR}/*.repo`; do
+    rpm -qf ${REPO_FILE} &> /dev/null
+    if [ $? -eq 1 ]; then
+      echo "Moving ${REPO_FILE} to ${TMP_DIR}."
+      mv ${REPO_FILE} ${TMP_DIR}
+    fi
+  done
+}
+
+if [ $# -ne 1 -o "$1" != "clean" ]; then
+  echo "Usage: $0 clean"
+  exit 1
+fi
+
+repo_clean
+
--- tools/tools.pro
+++ tools/tools.pro
@@ -0,0 +1,7 @@
+TEMPLATE = subdirs
+
+tools.files = ssu-repos.sh
+tools.path  = /usr/sbin/
+
+INSTALLS += tools
+



Reply via email to