Author: lmontel
Date: Wed Feb 14 21:51:32 2007
New Revision: 121153
Added:
packages/cooker/amarok/current/SOURCES/magnatune2.diff
Modified:
packages/cooker/amarok/current/SPECS/amarok.spec
Log:
Fix magnatune
Added: packages/cooker/amarok/current/SOURCES/magnatune2.diff
==============================================================================
--- (empty file)
+++ packages/cooker/amarok/current/SOURCES/magnatune2.diff Wed Feb 14
21:51:32 2007
@@ -0,0 +1,28 @@
+Index: src/magnatunebrowser/magnatunealbumdownloader.cpp
+===================================================================
+--- amarok/src/magnatunebrowser/magnatunealbumdownloader.cpp (revision
633659)
++++ amarok/src/magnatunebrowser/magnatunealbumdownloader.cpp (revision
633677)
+@@ -89,19 +89,19 @@
+
+ //ok, now we have the .zip file downloaded. All we need is to unpack it
to the desired location and add it to the collection.
+
+- QString unzipString = "unzip \""+m_tempDir.name() +
m_currentAlbumFileName + "\" -d \"" + m_currentAlbumUnpackLocation + "\" &";
++ QString unzipString = "unzip "+ KProcess::quote( m_tempDir.name() +
m_currentAlbumFileName) + " -d " +KProcess::quote( m_currentAlbumUnpackLocation
) + " &";
+
+ debug() << "unpacking: " << unzipString << endl;
+
+ system( unzipString.ascii() );
+
+-
+
++
+ if (m_currentAlbumId != -1 ) {
+
+- //now I really want to add the album cover to the same folder where I
just unzipped the album... The
++ //now I really want to add the album cover to the same folder where I
just unzipped the album... The
+ //only way of getting the actual location where the album was
unpacked is using the artist and album names
+-
++
+ MagnatuneAlbum album =
MagnatuneDatabaseHandler::instance()->getAlbumById( m_currentAlbumId );
+ MagnatuneArtist artist =
MagnatuneDatabaseHandler::instance()->getArtistById( album.getArtistId() );
+
Modified: packages/cooker/amarok/current/SPECS/amarok.spec
==============================================================================
--- packages/cooker/amarok/current/SPECS/amarok.spec (original)
+++ packages/cooker/amarok/current/SPECS/amarok.spec Wed Feb 14 21:51:32 2007
@@ -5,7 +5,7 @@
%define name amarok
%define version 1.4.5
-%define release %mkrel 2
+%define release %mkrel 3
#Add MySQL support
%define build_mysql 0
@@ -38,6 +38,7 @@
#(nl): Disable for the moment as it had been reported that this patch is
broken.
Patch4: amarok-1.4.0-use-mandriva-directory.patch
Patch6: amarok-add-radios.patch
+Patch7: magnatune2.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: libtaglib-devel >= 1.4
BuildRequires: kdemultimedia-devel
@@ -275,6 +276,7 @@
%patch3 -p1 -b .fix_add_multimedia_shortcut
#%patch4 -p0 -b .use_mandriva_music_directory
%patch6 -p0 -b .add_some_radios
+%patch7 -p0 -b .fix_magnatune
%build
export QTDIR=%_prefix/lib/qt3