Hello community,
here is the log from the commit of package yast2-packager
checked in at Tue Apr 4 18:24:44 CEST 2006.
--------
--- yast2-packager/yast2-packager.changes 2006-03-30 10:51:47.000000000 +0200
+++ yast2-packager/yast2-packager.changes 2006-04-04 15:34:45.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Apr 4 15:33:53 CEST 2006 - locilka@suse.cz
+
+- Added initial Signatures-Handling callbacks (#162858)
+- 2.13.57
+
+-------------------------------------------------------------------
Old:
----
yast2-packager-2.13.56.tar.bz2
New:
----
yast2-packager-2.13.57.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-packager.spec ++++++
--- /var/tmp/diff_new_pack.DEbS2e/_old 2006-04-04 18:24:38.000000000 +0200
+++ /var/tmp/diff_new_pack.DEbS2e/_new 2006-04-04 18:24:38.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-packager (Version 2.13.56)
+# spec file for package yast2-packager (Version 2.13.57)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-packager
-Version: 2.13.56
+Version: 2.13.57
Release: 1
License: GPL
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-packager-2.13.56.tar.bz2
+Source0: yast2-packager-2.13.57.tar.bz2
prefix: /usr
BuildRequires: docbook-xsl-stylesheets doxygen gcc-c++ libxcrypt-devel libxslt perl-XML-Writer sgml-skel update-desktop-files yast2 yast2-country yast2-devtools yast2-installation yast2-testsuite yast2-xml
Requires: yast2 yast2-installation checkmedia yast2-country
@@ -41,7 +41,7 @@
Arvin Schnell
%prep
-%setup -n yast2-packager-2.13.56
+%setup -n yast2-packager-2.13.57
%build
%{prefix}/bin/y2tool y2autoconf
@@ -78,6 +78,9 @@
%doc %{prefix}/share/doc/packages/yast2-packager
%changelog -n yast2-packager
+* Tue Apr 04 2006 - locilka@suse.cz
+- Added initial Signatures-Handling callbacks (#162858)
+- 2.13.57
* Thu Mar 30 2006 - mvidner@suse.cz
- Don't run the modules if another process has the zypp lock (#160319).
- 2.13.56
++++++ yast2-packager-2.13.56.tar.bz2 -> yast2-packager-2.13.57.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-packager-2.13.56/VERSION new/yast2-packager-2.13.57/VERSION
--- old/yast2-packager-2.13.56/VERSION 2006-03-30 10:50:25.000000000 +0200
+++ new/yast2-packager-2.13.57/VERSION 2006-04-04 15:33:47.000000000 +0200
@@ -1 +1 @@
-2.13.56
+2.13.57
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-packager-2.13.56/configure new/yast2-packager-2.13.57/configure
--- old/yast2-packager-2.13.56/configure 2006-03-30 11:09:25.000000000 +0200
+++ new/yast2-packager-2.13.57/configure 2006-04-04 15:45:17.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59 for yast2-packager 2.13.56.
+# Generated by GNU Autoconf 2.59 for yast2-packager 2.13.57.
#
# Report bugs to http://www.suse.de/feedback.
#
@@ -269,8 +269,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-packager'
PACKAGE_TARNAME='yast2-packager'
-PACKAGE_VERSION='2.13.56'
-PACKAGE_STRING='yast2-packager 2.13.56'
+PACKAGE_VERSION='2.13.57'
+PACKAGE_STRING='yast2-packager 2.13.57'
PACKAGE_BUGREPORT='http://www.suse.de/feedback'
ac_unique_file="RPMNAME"
@@ -728,7 +728,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures yast2-packager 2.13.56 to adapt to many kinds of systems.
+\`configure' configures yast2-packager 2.13.57 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -795,7 +795,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-packager 2.13.56:";;
+ short | recursive ) echo "Configuration of yast2-packager 2.13.57:";;
esac
cat <<\_ACEOF
@@ -908,7 +908,7 @@
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
-yast2-packager configure 2.13.56
+yast2-packager configure 2.13.57
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
@@ -922,7 +922,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by yast2-packager $as_me 2.13.56, which was
+It was created by yast2-packager $as_me 2.13.57, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
@@ -1652,7 +1652,7 @@
# Define the identity of the package.
PACKAGE='yast2-packager'
- VERSION='2.13.56'
+ VERSION='2.13.57'
cat >>confdefs.h <<_ACEOF
@@ -1863,7 +1863,7 @@
-VERSION="2.13.56"
+VERSION="2.13.57"
RPMNAME="yast2-packager"
MAINTAINER="Jiri Srain "
@@ -2695,7 +2695,7 @@
} >&5
cat >&5 <<_CSEOF
-This file was extended by yast2-packager $as_me 2.13.56, which was
+This file was extended by yast2-packager $as_me 2.13.57, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -2750,7 +2750,7 @@
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-packager config.status 2.13.56
+yast2-packager config.status 2.13.57
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-packager-2.13.56/configure.in new/yast2-packager-2.13.57/configure.in
--- old/yast2-packager-2.13.56/configure.in 2006-03-30 11:09:17.000000000 +0200
+++ new/yast2-packager-2.13.57/configure.in 2006-04-04 15:45:12.000000000 +0200
@@ -1,9 +1,9 @@
dnl configure.in for yast2-packager
dnl
-dnl -- This file is generated by y2autoconf 2.13.16 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-packager, 2.13.56, http://www.suse.de/feedback, yast2-packager)
+AC_INIT(yast2-packager, 2.13.57, http://www.suse.de/feedback, yast2-packager)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -17,7 +17,7 @@
AM_INIT_AUTOMAKE(tar-ustar) dnl searches for some needed programs
dnl Important YaST2 variables
-VERSION="2.13.56"
+VERSION="2.13.57"
RPMNAME="yast2-packager"
MAINTAINER="Jiri Srain "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-packager-2.13.56/src/modules/SignatureCheckCallbacks.ycp new/yast2-packager-2.13.57/src/modules/SignatureCheckCallbacks.ycp
--- old/yast2-packager-2.13.56/src/modules/SignatureCheckCallbacks.ycp 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-packager-2.13.57/src/modules/SignatureCheckCallbacks.ycp 2006-04-04 15:23:29.000000000 +0200
@@ -0,0 +1,75 @@
+/**
+ * Module: SignatureCheckCallbacks.ycp
+ * Authors: Lukas Ocilka
+ *
+ * Callbacks for handling signatures.
+ *
+ * $Id: SignatureCheckCallbacks.ycp 28363 2006-02-24 12:27:15Z locilka $
+ */
+
+{
+ textdomain "packager";
+
+ module "SignatureCheckCallbacks";
+
+ import "SignatureCheckDialogs";
+
+ // Name of the callback handler function. Required callback prototype is
+ // boolean(string keyid, string keyname). The callback function should ask
+ // user whether the unknown key can be accepted, returned true value means to
+ // accept the file.
+ boolean AcceptUnknownGpgKey (string keyid, string keyname) {
+ // FIXME: one of these two dialogs should be used
+
+ string filename = "FIXME: 'filename' is undefined variable!";
+ return SignatureCheckDialogs::ItemSignedWithUnknownSignature(`file, filename, keyid);
+
+ // This function would need more complex handling
+ // it also offers to import the signature into the keyring
+ SignatureCheckDialogs::ItemSignedWithPublicSignature(`file, filename, keyid, keyname);
+ return nil;
+ }
+
+ // Name of the callback handler function. Required callback prototype is
+ // boolean(string filename). The callback function should ask user whether the
+ // unsigned file can be accepted, returned true value means to accept the
+ // file.
+ boolean AcceptUnsignedFile (string filename) {
+ return SignatureCheckDialogs::UseUnsignedItem(`file, filename);
+ }
+
+ // Name of the callback handler function. Required callback prototype is
+ // boolean(string filename, string keyid, string keyname). The callback
+ // function should ask user whether the unsigned file can be accepted,
+ // returned true value means to accept the file.
+ boolean AcceptVerificationFailed (string filename, string keyid, string keyname) {
+ // FIXME: the description doesn't match the function name
+ // see also AcceptUnsignedFile() function
+ return SignatureCheckDialogs::UseCorruptedItem(`file, filename);
+ }
+
+ // Name of the callback handler function. Required callback prototype is void
+ // (string keyid, string keyname). The callback function should inform user
+ // that a trusted key has been added.
+ void TrustedKeyAdded (string keyid, string keyname) {
+ // FIXME: we have no dialog for this message
+ return nil;
+ }
+
+ // Name of the callback handler function. Required callback prototype is void
+ // (string keyid, string keyname). The callback function should inform user
+ // that a trusted key has been removed.
+ void TrustedKeyRemoved (string keyid, string keyname) {
+ // FIXME: we have no dialog for this message
+ return nil;
+ }
+
+ // Name of the callback handler function. Required callback prototype is
+ // boolean(string keyid, string keyname). The callback function should ask
+ // user whether the key is trusted, returned true value means the key is
+ // trusted.
+ boolean ImportGpgKey (string keyid, string keyname) {
+ // FIXME: description of the function doesn't match the function name!!!
+ return nil;
+ }
+}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-packager-2.13.56/src/modules/SignatureCheckDialogs.ycp new/yast2-packager-2.13.57/src/modules/SignatureCheckDialogs.ycp
--- old/yast2-packager-2.13.56/src/modules/SignatureCheckDialogs.ycp 2006-03-30 10:49:57.000000000 +0200
+++ new/yast2-packager-2.13.57/src/modules/SignatureCheckDialogs.ycp 2006-04-04 15:22:38.000000000 +0200
@@ -235,9 +235,9 @@
* @param symbol item_type `file or `package
* @param string item_name file name or package name
* @param string key_id
- * @return symbol `yes, `no or `retry
+ * @return boolean true if 'yes, use file'
*/
- global symbol ItemSignedWithUnknownSignature (symbol item_type, string item_name, string key_id) {
+ global boolean ItemSignedWithUnknownSignature (symbol item_type, string item_name, string key_id) {
string description_text = sformat((item_type == `package ?
// popup question, %1 stands for the package name, %2 for the key ID
_("The package %1 is digitally signed with an unknown
@@ -273,11 +273,11 @@
);
// This will optionally offer to retrieve the key from gpg keyservers
- // That's why it returns 'symbol' instead of 'boolean'
+ // That's why it will return 'symbol' instead of 'boolean'
// But by now it only handles yes/no/cancel
- symbol ret = (WaitForYesNoCancelUserInput() == true ? `yes : `no);
+ boolean ret = WaitForYesNoCancelUserInput();
// default value
- if (ret == nil) ret = `no;
+ if (ret == nil) ret = false;
UI::CloseDialog();
return ret;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...