Hello community,

here is the log from the commit of package youtube-dl-gui for openSUSE:Factory 
checked in at 2017-04-20 20:56:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/youtube-dl-gui (Old)
 and      /work/SRC/openSUSE:Factory/.youtube-dl-gui.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "youtube-dl-gui"

Thu Apr 20 20:56:35 2017 rev:2 rq:487987 version:0.3.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/youtube-dl-gui/youtube-dl-gui.changes    
2017-04-12 18:25:49.692404917 +0200
+++ /work/SRC/openSUSE:Factory/.youtube-dl-gui.new/youtube-dl-gui.changes       
2017-04-20 20:56:37.499814861 +0200
@@ -1,0 +2,10 @@
+Fri Apr 14 15:33:26 UTC 2017 - mplus...@suse.com
+
+- Replace supplements with enhances to avoid unwanted installation
+
+-------------------------------------------------------------------
+Thu Apr 13 18:09:27 UTC 2017 - aloi...@gmx.com
+
+- Added youtube-dl-gui-use_system_exe.patch 
+
+-------------------------------------------------------------------

New:
----
  youtube-dl-gui-use_system_exe.patch

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

Other differences:
------------------
++++++ youtube-dl-gui.spec ++++++
--- /var/tmp/diff_new_pack.S8NlPA/_old  2017-04-20 20:56:38.595659891 +0200
+++ /var/tmp/diff_new_pack.S8NlPA/_new  2017-04-20 20:56:38.595659891 +0200
@@ -25,14 +25,17 @@
 Group:          Productivity/Networking/Web/Utilities
 Url:            https://github.com/MrS0m30n3/youtube-dl-gui
 Source0:        
https://github.com/MrS0m30n3/youtube-dl-gui/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE youtube-dl-gui-use_system_exe.patch
+Patch0:         %{name}-use_system_exe.patch
 BuildRequires:  fdupes
 BuildRequires:  hicolor-icon-theme
 BuildRequires:  python-devel
 BuildRequires:  python-wxWidgets-3_0-devel
 BuildRequires:  update-desktop-files
 Requires:       python-wxWidgets-3_0
+Requires:       youtube-dl
 Recommends:     ffmpeg
-Supplements:    youtube-dl
+Enhances:       youtube-dl
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 
@@ -43,6 +46,8 @@
 
 %prep
 %setup -q
+%patch0 -p1
+sed -e 's|__BINDIR__|%{_bindir}|' -i youtube_dl_gui/optionsmanager.py
 for i in 
{'optionsmanager','mainframe','__init__','logmanager','utils','downloadmanager','__main__','updatemanager','parsers','optionsframe','downloaders'};
 do
 sed -i -e "1d" "youtube_dl_gui/$i.py"
 done

++++++ youtube-dl-gui-use_system_exe.patch ++++++
From: Luigi Baldoni <aloi...@gmx.com>
Date: 2017-04-13 18:07:44 +0200
Subject: Disable update button and force exe path

Update button is ghosted so that we don't end up with
locally installed versions of youtube-dl and rely on
the system one instead.

Also the path for youtube-dl is hardcoded so that it
can point to the system-installed executable.


Index: youtube-dl-gui-0.3.8/youtube_dl_gui/mainframe.py
===================================================================
--- youtube-dl-gui-0.3.8.orig/youtube_dl_gui/mainframe.py
+++ youtube-dl-gui-0.3.8/youtube_dl_gui/mainframe.py
@@ -149,6 +149,7 @@ class MainFrame(wx.Frame):
 
         self._download_btn = self._create_button(self.DOWNLOAD_LABEL, 
self._on_download)
         self._update_btn = self._create_button(self.UPDATE_LABEL, 
self._on_update)
+        self._update_btn.Disable()
         self._options_btn = self._create_button(self.OPTIONS_LABEL, 
self._on_options)
 
         self._status_list = ListCtrl(self.STATUSLIST_COLUMNS,
@@ -276,7 +277,6 @@ class MainFrame(wx.Frame):
         """Resets GUI widgets after update or download process. """
         self._download_btn.SetLabel(self.DOWNLOAD_LABEL)
         self._download_btn.Enable()
-        self._update_btn.Enable()
 
     def _print_stats(self):
         """Display download stats in the status bar. """
Index: youtube-dl-gui-0.3.8/youtube_dl_gui/optionsmanager.py
===================================================================
--- youtube-dl-gui-0.3.8.orig/youtube_dl_gui/optionsmanager.py
+++ youtube-dl-gui-0.3.8/youtube_dl_gui/optionsmanager.py
@@ -234,7 +234,7 @@ class OptionsManager(object):
             'username': '',
             'password': '',
             'video_password': '',
-            'youtubedl_path': self.config_path,
+            'youtubedl_path': '__BINDIR__',
             'cmd_args': '',
             'enable_log': True,
             'log_time': False,

Reply via email to