Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package discord for openSUSE:Factory:NonFree 
checked in at 2023-12-21 23:36:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory:NonFree/discord (Old)
 and      /work/SRC/openSUSE:Factory:NonFree/.discord.new.1840 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "discord"

Thu Dec 21 23:36:51 2023 rev:42 rq:1134428 version:0.0.39

Changes:
--------
--- /work/SRC/openSUSE:Factory:NonFree/discord/discord.changes  2023-12-18 
22:54:54.673344399 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.discord.new.1840/discord.changes        
2023-12-21 23:36:53.622774865 +0100
@@ -1,0 +2,13 @@
+Tue Dec 19 23:36:08 UTC 2023 - Wojciech Kazubski <w...@ire.pw.edu.pl>
+
+- Update to version 0.0.39:
+  * No upstream release notes.
+
+-------------------------------------------------------------------
+Tue Dec 19 14:04:29 UTC 2023 - Giacomo Comes <gcomes....@gmail.com>
+
+- use a wrap script to disable the auto updating mechanism when 
+  Discord is launched
+  * replace (non working) disable-breaking-updates.py
+
+-------------------------------------------------------------------

Old:
----
  disable-breaking-updates.py
  discord-0.0.38.tar.gz

New:
----
  discord
  discord-0.0.39.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ discord.spec ++++++
--- /var/tmp/diff_new_pack.81A4LI/_old  2023-12-21 23:36:56.890894045 +0100
+++ /var/tmp/diff_new_pack.81A4LI/_new  2023-12-21 23:36:56.906894628 +0100
@@ -25,7 +25,7 @@
 # This is to enable build with patent encoumbered codecs. Not allowed in OBS
 %bcond_with x264
 Name:           discord
-Version:        0.0.38
+Version:        0.0.39
 Release:        0
 Summary:        Voice and Text Chat for Gamers
 License:        SUSE-NonFree
@@ -36,9 +36,8 @@
 Source2:        discord-symbolic.svg
 Source3:        
https://raw.githubusercontent.com/flathub/com.discordapp.Discord/master/com.discordapp.Discord.appdata.xml
 # Disable breaking updates which will prompt users to download a deb or tar
-# file and lock them out of Discord making the program unusable. Courtesy of
-# NixOS contributors and the original author (@lionirdeadman), kudos to them.
-Source4:        
https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/applications/networking/instant-messengers/discord/disable-breaking-updates.py
+# file and lock them out of Discord making the program unusable.
+Source4:        discord
 Source99:       PERMISSION
 ExclusiveArch:  x86_64
 BuildRequires:  desktop-file-utils
@@ -46,7 +45,10 @@
 BuildRequires:  update-desktop-files
 BuildRequires:  unzip
 Requires:       libatomic1
-Requires(post): python3-base
+#for the wrapper script:
+Requires:       grep
+Requires:       sed
+Requires:       coreutils
 Conflicts:      discord
 
 
@@ -106,14 +108,7 @@
 
 # Executable checks for resources in its directory so it cannot be in bin.
 mkdir -p %{buildroot}%{_bindir}
-ln -s %{_libdir}/%{name}/Discord %{buildroot}%{_bindir}/%{name}
-
-# disable-breaking-updates.py script
-install -v -m 644 %{SOURCE4} %{buildroot}%{_libdir}/%{name}/
-sed -i -e '/@pythonInterpreter@/d' \
-       -e 's,@configDirName@,discord,' \
-       -e '/print("\[Nix]/ s/Nix/Discord/' \
-  %{buildroot}%{_libdir}/%{name}/disable-breaking-updates.py
+install -v -m 755 %{SOURCE4} %{buildroot}%{_bindir}/%{name}
 
 %post
 %if 0%{?suse_version} < 1500
@@ -121,10 +116,6 @@
 %endif
 chmod 0755 %{_libdir}/%{name}/Discord
 
-if command -v python3 > /dev/null; then
-  python3 %{_libdir}/%{name}/disable-breaking-updates.py
-fi
-
 %if 0%{?suse_version} < 1500
 %postun
 %desktop_database_postun

++++++ discord ++++++
#!/bin/bash

#in the file $HOME/.config/discord/settings.json
#if the setting SKIP_HOST_UPDATE does not exist add it
#otherwise leave it untouched
CONFIGFILE=$HOME/.config/discord/settings.json
EXE=$(dirname "$0")/../lib64/discord/Discord
if [[ -x $EXE ]]; then
    if [[ -d $HOME/.config && ! -f $CONFIGFILE ]]; then
        [[ ! -d $HOME/.config/discord ]] && mkdir $HOME/.config/discord
        echo '{"SKIP_HOST_UPDATE": true}' >$CONFIGFILE
    elif [[ -f $CONFIGFILE ]]; then
        ! grep -qF SKIP_HOST_UPDATE $CONFIGFILE && \
          sed -i '/^{/s@$@\n  "SKIP_HOST_UPDATE": true,@' $CONFIGFILE
    fi
    exec $EXE "$@"
fi

++++++ discord-0.0.38.tar.gz -> discord-0.0.39.tar.gz ++++++
/work/SRC/openSUSE:Factory:NonFree/discord/discord-0.0.38.tar.gz 
/work/SRC/openSUSE:Factory:NonFree/.discord.new.1840/discord-0.0.39.tar.gz 
differ: char 5, line 1

Reply via email to