Update of /cvsroot/gtkpod/libgpod/tests
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv31904/tests

Modified Files:
        test-photos.c 
Log Message:
Reverted accidential patch.



Index: test-photos.c
===================================================================
RCS file: /cvsroot/gtkpod/libgpod/tests/test-photos.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- test-photos.c       26 Sep 2006 14:53:17 -0000      1.5
+++ test-photos.c       28 Sep 2006 00:32:50 -0000      1.6
@@ -119,12 +119,6 @@
        g_print (_("\n"));
        g_print (_("Usage to dump all photos to <output_dir>:\n"));
        g_print (_("%s dump <mountpoint> <output_dir>\n"), argv[0]);
-       g_print (_("\n"));
-       g_print (_("Usage to delete a photo album:\n"));
-       g_print (_("%s delete <mountpoint> <albumname>\n"), argv[0]);
-       g_print (_("\n"));
-       g_print (_("Usage to rename a photo album:\n"));
-       g_print (_("%s rename <mountpoint> <albumname> <new_albumname>\n"), 
argv[0]);
         return 1;
     }
     setlocale (LC_ALL, "");
@@ -164,50 +158,6 @@
         dump_albums (db, argv[3]);
        itdb_photodb_free (db);
     }
-    else if (strcmp (argv[1], "delete") == 0)
-    {
-        db = itdb_photodb_parse (argv[2], &error);
-        if (db == NULL)
-        {
-            if (error)
-            {
-                g_print (_("Error reading iPod photo database.(%s)\n"), 
error->message);
-                g_error_free (error);
-                error = NULL;
-            }
-            else
-                g_print (_("Error reading iPod photo database.\n"));
-
-            return 1;
-        }
-        itdb_photodb_remove_photoalbum( db, argv[3] );
-        g_print (_("Writing to the photo database.\n"));
-       itdb_photodb_write (db, &error);
-        g_print (_("Freeing the photo database.\n"));
-        itdb_photodb_free (db);
-    }
-    else if (strcmp (argv[1], "rename") == 0)
-    {
-        db = itdb_photodb_parse (argv[2], &error);
-        if (db == NULL)
-        {
-            if (error)
-            {
-                g_print (_("Error reading iPod photo database.(%s)\n"), 
error->message);
-                g_error_free (error);
-                error = NULL;
-            }
-            else
-                g_print (_("Error reading iPod photo database.\n"));
-
-            return 1;
-        }
-        itdb_photodb_rename_photoalbum( db, argv[3], argv[4] );
-        g_print (_("Writing to the photo database.\n"));
-       itdb_photodb_write (db, &error);
-        g_print (_("Freeing the photo database.\n"));
-        itdb_photodb_free (db);
-    }
     else
     {
        db = itdb_photodb_parse (argv[1], &error);


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to