Qtube being updated although package removed

peterworks

Ye Olde Bowler
As above - I removed Qtube from one of my machines a couple of weeks (still employing it on the other) but I still get the updates.
Any reason for this?
 
qtube (the webif frontend) is a seperate package from youtube-dl so you are seeing the youtybe-dl updates (qtube hasn't changed recently)
 
It's a relatively simple change to make the WebIf automatically remove unused dependencies when removing a package. I don't know why it's never been done...
 
It's a relatively simple change to make the WebIf automatically remove unused dependencies when removing a package.
@af123
Diff:
humax /mnt/hd2/mod/webif/html/pkg # diff -w script.js~ script.js
--- script.js~
+++ script.js
@@ -189,11 +189,16 @@
        $(panel).find('button.remove, button.install, button.upgrade')
            .button()
            .click(function() {
-               if ($(this).attr('action') == 'remove' &&
-                   !confirm('Please confirm removal of the ' +
+               if ($(this).attr('action') == 'remove')
+               {
+                   if (!confirm('Please confirm removal of the ' +
                    $(this).attr('id') + ' package.'))
                        return;

+                   execopkg('remove --autoremove ' + $(this).attr('id'),
+                     $(this).closest('tr').attr('pkg'));
+               }
+               else
                execopkg($(this).attr('action') + ' ' + $(this).attr('id'),
                    $(this).closest('tr').attr('pkg'));
        }).fadeIn('slow');
 
Last edited by a moderator:
Back
Top