summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Trygve Kalleberg <karltk@gentoo.org>2002-07-15 12:19:36 +0000
committerKarl Trygve Kalleberg <karltk@gentoo.org>2002-07-15 12:19:36 +0000
commit7e5e87b857ba47e03ae36e53dd81fb1697152445 (patch)
tree0294a75ffe838738415db399f6b0ffcfef072c24 /app-admin/gentoolkit
parentminor changes to reflect new KEYWORDS policy (diff)
downloadhistorical-7e5e87b857ba47e03ae36e53dd81fb1697152445.tar.gz
historical-7e5e87b857ba47e03ae36e53dd81fb1697152445.tar.bz2
historical-7e5e87b857ba47e03ae36e53dd81fb1697152445.zip
Fixed missing -y support
Diffstat (limited to 'app-admin/gentoolkit')
-rw-r--r--app-admin/gentoolkit/ChangeLog8
-rw-r--r--app-admin/gentoolkit/files/scripts/pkg-clean10
2 files changed, 14 insertions, 4 deletions
diff --git a/app-admin/gentoolkit/ChangeLog b/app-admin/gentoolkit/ChangeLog
index 7e09d9a81474..13427d39029f 100644
--- a/app-admin/gentoolkit/ChangeLog
+++ b/app-admin/gentoolkit/ChangeLog
@@ -1,12 +1,18 @@
# ChangeLog for app-admin/gentoolkit
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoolkit/ChangeLog,v 1.27 2002/07/14 22:39:40 lostlogic Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoolkit/ChangeLog,v 1.28 2002/07/15 12:19:36 karltk Exp $
*gentoolkit-0.1.14 (14 Jul 2002)
+ 15 Jul 2002; Karl Trygve Kalleberg <karltk@gentoo.org> files/scripts/pkg-clean :
+
+ Fixed non-functioning -y option.
+
14 Jul 2002; Brandon Low <lostlogic@gentoo.org> files/scripts/qpkg files/scripts/qpkg.1
files/etc-update/etc-update files/etc-update/ChangeLog:
+ 14 Jul 2002; Brandon Low <lostlogic@gentoo.org> files/scripts/qpkg files/scripts/qpkg.1 files/etc-update/etc-update files/etc-update/ChangeLog:
+
Added -q --query-deps option to qpkg and qpkg.1.
See `man qpkg` or `qpkg --help` for more information
diff --git a/app-admin/gentoolkit/files/scripts/pkg-clean b/app-admin/gentoolkit/files/scripts/pkg-clean
index 975bc716c338..e311f43928bf 100644
--- a/app-admin/gentoolkit/files/scripts/pkg-clean
+++ b/app-admin/gentoolkit/files/scripts/pkg-clean
@@ -83,9 +83,13 @@ for pkg_core in pkg_hash.keys():
full_path = pkg_hash[pkg_core][idx-1][PKG]
ebuild = string.replace(full_path, "/var/db/pkg/", "")
- params = "dialog --backtitle \"" + ebuild + "\" " + \
- "--yesno \"Are you sure you want to unmerge " + ebuild + " ?\" 20 70"
- res = os.system(params)
+ if not assume_yes:
+ params = "dialog --backtitle \"" + ebuild + "\" " + \
+ "--yesno \"Are you sure you want to unmerge " + ebuild + " ?\" 20 70"
+ res = os.system(params)
+ else:
+ res = 0
+
if res == 0:
(status, unmerge_out) = commands.getstatusoutput(
"ebuild %s unmerge" % (full_path))