public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 2/8] pakfire.cgi: Remove some old settings
Date: Tue, 11 Feb 2020 14:28:47 +0000	[thread overview]
Message-ID: <20200211142853.8561-3-michael.tremer@ipfire.org> (raw)
In-Reply-To: <20200211142853.8561-1-michael.tremer@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 1777 bytes --]

These can no longer be modified in the GUI and are used nowhere.

Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
---
 html/cgi-bin/pakfire.cgi | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/html/cgi-bin/pakfire.cgi b/html/cgi-bin/pakfire.cgi
index e6f3cda94..7c560bfbf 100644
--- a/html/cgi-bin/pakfire.cgi
+++ b/html/cgi-bin/pakfire.cgi
@@ -42,8 +42,6 @@ $pakfiresettings{'VALID'} = '';
 
 $pakfiresettings{'INSPAKS'} = '';
 $pakfiresettings{'DELPAKS'} = '';
-$pakfiresettings{'AUTOUPDATE'} = 'off';
-$pakfiresettings{'UUID'} = 'on';
 
 sub refreshpage{&Header::openbox( 'Waiting', 1, "<meta http-equiv='refresh' content='1;'>" );print "<center><img src='/images/clock.gif' alt='' /><br/><font color='red'>$Lang::tr{'pagerefresh'}</font></center>";&Header::closebox();}
 
@@ -144,13 +142,6 @@ END
 	system("$command");
 	system("/bin/sleep 1");
 } elsif ($pakfiresettings{'ACTION'} eq "$Lang::tr{'save'}") {
-
-	if ($pakfiresettings{'AUTOUPDATE'} eq 'on') {
-		system("/usr/local/bin/pakfire enable updates >/dev/null 2>&1");
-	} else {
-		system("/usr/local/bin/pakfire disable updates  >/dev/null 2>&1");
-	}
-
 	&General::writehash("${General::swroot}/pakfire/settings", \%pakfiresettings);
 }
 
@@ -159,13 +150,6 @@ END
 my %selected=();
 my %checked=();
 
-$checked{'AUTOUPDATE'}{'off'} = '';
-$checked{'AUTOUPDATE'}{'on'} = '';
-$checked{'AUTOUPDATE'}{$pakfiresettings{'AUTOUPDATE'}} = "checked='checked'";
-$checked{'UUID'}{'off'} = '';
-$checked{'UUID'}{'on'} = '';
-$checked{'UUID'}{$pakfiresettings{'UUID'}} = "checked='checked'";
-
 # DPC move error message to top so it is seen!
 if ($errormessage) {
 	&Header::openbox('100%', 'left', $Lang::tr{'error messages'});
-- 
2.20.1


  parent reply	other threads:[~2020-02-11 14:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-11 14:28 Making testing easier in IPFire 2 Michael Tremer
2020-02-11 14:28 ` [PATCH 1/8] pakfire: Automatically compose $version Michael Tremer
2020-02-11 14:28 ` Michael Tremer [this message]
2020-02-11 14:28 ` [PATCH 3/8] pakfire.cgi: Rename %pakfiresettings to %cgiparams Michael Tremer
2020-02-11 14:28 ` [PATCH 4/8] pakfire.cgi: Add UI to select repository Michael Tremer
2020-02-11 14:28 ` [PATCH 5/8] pakfire: Add version suffix when in a certain tree Michael Tremer
2020-02-11 14:28 ` [PATCH 6/8] make.sh: Tidy up Git commands Michael Tremer
2020-02-11 14:28 ` [PATCH 7/8] make.sh: Cleanup code that builds ${SYSTEM_RELEASE} Michael Tremer
2020-02-11 14:28 ` [PATCH 8/8] make.sh: Configure Pakfire to load packages from the correct tree Michael Tremer
2020-02-12 13:49 ` Making testing easier in IPFire 2 Stefan Schantl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200211142853.8561-3-michael.tremer@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox