================================
f-spot:source=0.2.0-1 (previous: 0.1.11-4)
cvc rdiff f-spot -1 /[EMAIL PROTECTED]:1-devel/0.2.0-1
================================
0.2.0-1 Ken VanDine ([EMAIL PROTECTED]) Tue Aug 29 13:59:28 2006
New version with sqlite3 migration
migrate.patch: new
--- /dev/null
+++ migrate.patch
@@ -0,0 +13 @@
+diff -Naur f-spot-0.2.0.orig/src/f-spot.in f-spot-0.2.0/src/f-spot.in
+--- f-spot-0.2.0.orig/src/f-spot.in 2006-03-01 02:51:19.000000000 -0500
++++ f-spot-0.2.0/src/f-spot.in 2006-08-29 12:28:02.000000000 -0400
+@@ -4,6 +4,9 @@
+ [EMAIL PROTECTED]@
+ [EMAIL PROTECTED]@
+
++#Run db conversion if needed
++/usr/share/f-spot/f-spot_migrate.sh
++
+ EXE_TO_RUN="$libdir/f-spot/f-spot.exe"
+
+ case "x--uninstalled" in ("x$1" | "x$2")
f-spot-0.2.0.tar.bz2: new
f-spot.recipe: changed
Index: f-spot.recipe
====================================================================
contents(size sha1)
inode(mtime)
--- f-spot.recipe /[EMAIL PROTECTED]:1-devel/0.1.11-4
+++ f-spot.recipe /[EMAIL PROTECTED]:1-devel/0.2.0-1
@@ -1,12 +1,21 @@
-loadSuperClass('gnomepackage.recipe')
+loadSuperClass('gnomepackage.recipe', label='[EMAIL PROTECTED]:devel')
class FSpot(GnomePackageRecipe):
buildRequires = [ 'gtk:devel', 'gtk-sharp:devellib',
'gecko-sharp:devellib', 'mono:devel',
'GConf:devel', 'lcms:devel', 'desktop-file-utils:runtime',
- 'glibc:devel', 'libjpeg:devel', 'dbus-sharp:lib',
+ 'glibc:devel', 'libjpeg:devel', 'dbus-mono:lib',
'gtk-sharp:lib', 'mono:lib', 'GConf:runtime', 'gettext:runtime',
- 'mono:runtime', 'gnome-sharp:lib' ]
+ 'mono:runtime' ]
name = 'f-spot'
- version = '0.1.11'
+ version = '0.2.0'
+
+ def unpack(r):
+ GnomePackageRecipe.unpack(r)
+ r.addSource('f-spot_migrate.sh')
+ r.addPatch('migrate.patch')
+
+ def install(r):
+ GnomePackageRecipe.install(r)
+ r.Install('f-spot_migrate.sh', '%(datadir)s/%(name)s/')
f-spot_migrate.sh: new
--- /dev/null
+++ f-spot_migrate.sh
@@ -0,0 +15 @@
+#!/bin/bash
+#
+# Script to check database version (Sqlite 2 or 3) and
+# convert if necessary
+
+ver=`file .gnome2/f-spot/photos.db |grep "Version 3"`
+RETVAL=$?
+if [ $RETVAL != 0 ];
+then
+ echo $RETVAL
+ echo "Converting the F-Spot photo database"
+ mv ~/.gnome2/f-spot/photos.db ~/.gnome2/f-spot/photos.db.v2
+ echo .dump | sqlite .gnome2/f-spot/photos.db.v2 | sqlite3
~/.gnome2/f-spot/photos.db
+fi
+
f-spot-0.1.11.tar.bz2: removed
Committed by: krv
_______________________________________________
Desktop-commits mailing list
[email protected]
http://lists.bizrace.com/mailman/listinfo/desktop-commits