[berusky] Fixed player profile save

Martin Stransky stransky at fedoraproject.org
Sat Sep 15 20:13:54 UTC 2012


commit 22d1ba1d876e467733c077afe4e56554b37f3aed
Author: Martin Stransky <stransky at anakreon.cz>
Date:   Sat Sep 15 22:13:48 2012 +0200

    Fixed player profile save

 berusky-profile-save.patch |   11 +++++++++++
 berusky.spec               |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/berusky-profile-save.patch b/berusky-profile-save.patch
new file mode 100644
index 0000000..f43572d
--- /dev/null
+++ b/berusky-profile-save.patch
@@ -0,0 +1,11 @@
+diff -up berusky-1.5/src/main.cpp.old berusky-1.5/src/main.cpp
+--- berusky-1.5/src/main.cpp.old	2012-08-28 23:25:49.000000000 +0200
++++ berusky-1.5/src/main.cpp	2012-09-15 22:10:32.000000000 +0200
+@@ -265,6 +265,7 @@ void user_directory_create(void)
+   // Check ~./berusky
+   dir_create(INI_USER_DIRECTORY);
+   dir_create(INI_USER_LEVELS);
++  dir_create(INI_USER_PROFILES);
+ 
+   // Check ~./berusky/berusky.ini
+   bprintfnl(_("Checking %s/%s..."),INI_USER_DIRECTORY,INI_FILE_NAME);
diff --git a/berusky.spec b/berusky.spec
index f02449b..fc6cc5e 100644
--- a/berusky.spec
+++ b/berusky.spec
@@ -1,12 +1,13 @@
 Summary:        Sokoban clone
 Name:           berusky
 Version:        1.5
-Release:        1%{?dist}
+Release:        2%{?dist}
 License:        GPLv2+
 Group:          Amusements/Games
 Source:         http://www.anakreon.cz/download/berusky/tar.gz/%{name}-%{version}.tar.gz
 Source1:        berusky.desktop
 Source2:        berusky.png
+Patch0:         berusky-profile-save.patch
 URL:            http://www.anakreon.cz/
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires:       berusky-data >= 1.5
@@ -26,6 +27,7 @@ This package contains a binary for the game.
 
 %prep
 %setup -q -n %{name}-%{version}
+%patch0 -p1 -b .profile-save
 
 %build
 %configure \
@@ -75,6 +77,9 @@ fi
 %{_datadir}/icons/hicolor/32x32/apps/berusky.png
 
 %changelog
+* Sat Sep 15 2012 Martin Stransky <stransky at redhat.com> 1.5-2
+- Fixed player profile save
+
 * Sat Sep 1 2012 Martin Stransky <stransky at redhat.com> 1.5-1
 - New upstream version (1.5)
 


More information about the scm-commits mailing list