Remove unnecessary ugly hacks in package/config
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 21 Aug 2010 16:09:36 +0000 (18:09 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 1 Sep 2010 10:27:02 +0000 (12:27 +0200)
Those hacks should not be needed and they even make "mconf" fail to
save the configuration file in $(CONFIG_DIR).

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/config/conf.c
package/config/mconf.c
package/config/patches/13-use-conf-write-autoconf.patch [deleted file]
package/config/patches/series
package/config/qconf.cc

index 2449ca001b6979d4241ab242af9f778309e61c53..2062b57d40aaee69a62a1a138c0e672eb030fe49 100644 (file)
@@ -640,10 +640,6 @@ int main(int ac, char **av)
                        fprintf(stderr, _("\n*** Error during writing of the Buildroot configuration.\n\n"));
                        exit(1);
                }
-               if (conf_write_autoconf()) {
-                       fprintf(stderr, _("\n*** Error during update of the Buildroot configuration.\n\n"));
-                       return 1;
-               }
        }
        return 0;
 }
index 317e478576487134f74ef2c807ae77604c339f06..3d1ed3ac45f6145aad8b5fe5faa23f3ac93e04d2 100644 (file)
@@ -862,6 +862,6 @@ int main(int ac, char **av)
                        "\n\n"));
        }
 
-       return conf_write_autoconf();
+       return 0;
 }
 
diff --git a/package/config/patches/13-use-conf-write-autoconf.patch b/package/config/patches/13-use-conf-write-autoconf.patch
deleted file mode 100644 (file)
index 8297dd9..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
----
- conf.c   |    4 ++++
- mconf.c  |    2 +-
- qconf.cc |    2 ++
- 3 files changed, 7 insertions(+), 1 deletion(-)
-
-Index: config.new/conf.c
-===================================================================
---- config.new.orig/conf.c
-+++ config.new/conf.c
-@@ -641,6 +641,10 @@
-                       fprintf(stderr, _("\n*** Error during writing of the Buildroot configuration.\n\n"));
-                       exit(1);
-               }
-+              if (conf_write_autoconf()) {
-+                      fprintf(stderr, _("\n*** Error during update of the Buildroot configuration.\n\n"));
-+                      return 1;
-+              }
-       }
-       return 0;
- }
-Index: config.new/mconf.c
-===================================================================
---- config.new.orig/mconf.c
-+++ config.new/mconf.c
-@@ -862,6 +862,6 @@
-                       "\n\n"));
-       }
--      return 0;
-+      return conf_write_autoconf();
- }
-Index: config.new/qconf.cc
-===================================================================
---- config.new.orig/qconf.cc
-+++ config.new/qconf.cc
-@@ -1612,6 +1612,7 @@
- {
-       if (!conf_get_changed()) {
-               e->accept();
-+              conf_write_autoconf();
-               return;
-       }
-       QMessageBox mb("qconf", _("Save configuration?"), QMessageBox::Warning,
-@@ -1622,6 +1623,7 @@
-       switch (mb.exec()) {
-       case QMessageBox::Yes:
-               conf_write(NULL);
-+              conf_write_autoconf();
-       case QMessageBox::No:
-               e->accept();
-               break;
index 997befd35b2c3a89237be43587e38f746292f214..defdf58996bf04bdecccd51e76189c271e0ae16f 100644 (file)
@@ -8,5 +8,4 @@
 10-br-build-system.patch
 11-use-mktemp-for-lxdialog.patch
 12-fix-glade-file-path.patch
-13-use-conf-write-autoconf.patch
 14-support-out-of-tree-config.patch
index 0fe8fd435a8e5831a3f85b1130be45e2cae51b33..bbda3c81160ec2c5bf2436d558f484fd005ca93c 100644 (file)
@@ -1612,7 +1612,6 @@ void ConfigMainWindow::closeEvent(QCloseEvent* e)
 {
        if (!conf_get_changed()) {
                e->accept();
-               conf_write_autoconf();
                return;
        }
        QMessageBox mb("qconf", _("Save configuration?"), QMessageBox::Warning,
@@ -1623,7 +1622,6 @@ void ConfigMainWindow::closeEvent(QCloseEvent* e)
        switch (mb.exec()) {
        case QMessageBox::Yes:
                conf_write(NULL);
-               conf_write_autoconf();
        case QMessageBox::No:
                e->accept();
                break;