Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package myrlyn for openSUSE:Factory checked in at 2026-11-23 12:26:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/myrlyn (Old) and /work/SRC/openSUSE:Factory/.myrlyn.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "myrlyn" Mon Nov 23 12:26:08 2026 rev:11 rq:1399795 version:1.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/myrlyn/myrlyn.changes 2026-11-13 18:41:05.015905861 +0100 +++ /work/SRC/openSUSE:Factory/.myrlyn.new.1340718/myrlyn.changes 2026-11-23 12:30:59.743878767 +0100 @@ -1,0 +2,21 @@ +Sun Nov 22 19:42:51 UTC 2026 - Stefan Hundhammer <[email protected]> + +- Update to version 1.1.2: + * Version bump to 1.1.2 + * Keep MYRLYN_DEL_KEY in the myrlyn-sudo environment + * Added a dialog for expired repo GPG keys + * Clean repo caches after deleting a GPG key + * Refactored GPG key code + * Successfully delete GPG key from RPM DB + * Enable text copy from GPG key dialog + * Try to delete expired GPG key + * Check for expired GPG keys + * Fixed long-standing naming bug (that nobody ever noticed) + * Use bold, not underlined for field caption + * Small help text fixes + * Create designer form ui on the stack, not heap + * Removed unneeded include + * Use an honest pointer, not one hidden behind an artificial smart pointer class + * Report locking process's PID and name if zypp is locked + +------------------------------------------------------------------- Old: ---- myrlyn-1.1.1.obscpio New: ---- myrlyn-1.1.2.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ myrlyn.spec ++++++ --- /var/tmp/diff_new_pack.OfPlTF/_old 2026-11-23 12:31:02.223983174 +0100 +++ /var/tmp/diff_new_pack.OfPlTF/_new 2026-11-23 12:31:02.230983468 +0100 @@ -20,7 +20,7 @@ Name: myrlyn # If you change the version here, don't forget ../VERSION.cmake ! # To increase only the last number, use rake version:bump -Version: 1.1.1 +Version: 1.1.2 Release: 0 Summary: Package manager GUI License: GPL-2.0-only ++++++ _service ++++++ --- /var/tmp/diff_new_pack.OfPlTF/_old 2026-11-23 12:31:02.305986626 +0100 +++ /var/tmp/diff_new_pack.OfPlTF/_new 2026-11-23 12:31:02.316987089 +0100 @@ -7,7 +7,7 @@ <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param> <param name="versionrewrite-pattern">(.*)\+0</param> <param name="versionrewrite-replacement">\1</param> - <param name="revision">1.1.1</param> + <param name="revision">1.1.2</param> <param name="changesgenerate">enable</param> </service> <service name="set_version" mode="manual"/> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.OfPlTF/_old 2026-11-23 12:31:02.380989783 +0100 +++ /var/tmp/diff_new_pack.OfPlTF/_new 2026-11-23 12:31:02.386990036 +0100 @@ -3,6 +3,6 @@ <param name="url">https://github.com/shundhammer/yqpkg.git</param> <param name="changesrevision">ca8bd11aa2729b40fa14e5e7131f3e7506962260</param></service><service name="tar_scm"> <param name="url">https://github.com/shundhammer/myrlyn.git</param> - <param name="changesrevision">b9c7ad714ccc5f9d569dfee458d79da90fcb3f88</param></service></servicedata> + <param name="changesrevision">c65bc5692923388cb334bd16a9d29ad5b5b22d60</param></service></servicedata> (No newline at EOF) ++++++ myrlyn-1.1.1.obscpio -> myrlyn-1.1.2.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/VERSION.cmake new/myrlyn-1.1.2/VERSION.cmake --- old/myrlyn-1.1.1/VERSION.cmake 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/VERSION.cmake 2026-11-22 20:17:46.000000000 +0100 @@ -1,4 +1,4 @@ SET( VERSION_MAJOR "1") SET( VERSION_MINOR "1" ) -SET( VERSION_PATCH "1" ) +SET( VERSION_PATCH "2" ) SET( VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/help/classification.md new/myrlyn-1.1.2/help/classification.md --- old/myrlyn-1.1.1/help/classification.md 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/help/classification.md 2026-11-22 20:17:46.000000000 +0100 @@ -35,7 +35,7 @@ See also [issue #71](https://github.com/shundhammer/myrlyn/issues/71). This situation is easy to avoid: Add a local directory as a repository with a -`dir:´ URL like `dir:/work/rpms` and install packages from there. That way, a +`dir:` URL like `dir:/work/rpms` and install packages from there. That way, a repository provides those RPMs, so they will not be displayed as orphaned. You will still not get any updates, of course, unless you build those RPMs @@ -64,14 +64,14 @@ _retracted_ on the update servers, and libzypp (both in `zypper` and Myrlyn) will not use that version as an update anymore. -But some users may already have installed it. Those users should _downgrade_ -this package to the latest non-retracted version. +But some users may already have installed it. Those users should now +_downgrade_ this package to the latest non-retracted version. In the package list, a retracted version is displayed in red (very much like an _orphaned_ version), and it shows a message **"[RETRACTED]"** in the "Versions" view below the package list. -If you start Myrlyn and it immediately switches to the "Package Classification" +If you start Myrlyn, and it immediately switches to the "Package Classification" view and within that view to "Retracted Installed Packages", that means that you have retracted packages installed. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/help/inst-summary.md new/myrlyn-1.1.2/help/inst-summary.md --- old/myrlyn-1.1.1/help/inst-summary.md 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/help/inst-summary.md 2026-11-22 20:17:46.000000000 +0100 @@ -36,14 +36,14 @@ changes. Unlike this pop-up dialog, the "Installation Summary" by default shows _all_ -pending changes, not only the automatic ones. You use the checkboxes in the +xpending changes, not only the automatic ones. Use the checkboxes in the left panel to select which status values to show. -By default, it will show all packages that will be newly installed, updated or +By default, it shows all packages that will be newly installed, updated or removed, no matter whether they were selected explicitly by you or marked -automatically because of dependencies. In addition to that, it will show you -all packages in status "Protected" (installed and locked against change) or -"Taboo" (not installed and locked against being installed). +automatically because of dependencies. In addition to that, it shows all +packages in status "Protected" (installed and locked against change) or "Taboo" +(not installed and locked against being installed). If you have many packages in status "Protected" or "Taboo", consider deselecting them in the status checkboxes in the left panel so they don't @@ -77,9 +77,8 @@ ### Check for Auto-Deleted Packages -Similar to above, select only "Auto-Delete" or middle-click it. - -The remaining packages were automatically marked for deletion because of +Similar to above, select only "Auto-Delete" or middle-click it. The remaining +packages in the list were automatically marked for deletion because of dependencies. This typically happens when another package that you requested has a diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/help/updates.md new/myrlyn-1.1.2/help/updates.md --- old/myrlyn-1.1.1/help/updates.md 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/help/updates.md 2026-11-22 20:17:46.000000000 +0100 @@ -72,10 +72,10 @@ is a new release with a new release number: Leap 15.6 -> Leap 16.0 -> Leap 16.1. -They receive package updates for bug fixes and security fixes, but typically no -new package versions with new features. These updates may be bundled into -_patches_ that address specific bugs or security problems. A patch may contain -one or more packages related to the particular issue. +They receive package updates with fixes for bugs and security problems, but +typically no new package versions with new features. These updates may be +bundled into _patches_ that address specific bugs or security problems. A patch +may contain one or more packages related to the particular issue. A point release will certainly not receive a completely new package like Myrlyn in the example above. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/package/_service new/myrlyn-1.1.2/package/_service --- old/myrlyn-1.1.1/package/_service 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/package/_service 2026-11-22 20:17:46.000000000 +0100 @@ -7,7 +7,7 @@ <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param> <param name="versionrewrite-pattern">(.*)\+0</param> <param name="versionrewrite-replacement">\1</param> - <param name="revision">1.1.1</param> + <param name="revision">1.1.2</param> <param name="changesgenerate">enable</param> </service> <service name="set_version" mode="manual"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/package/myrlyn.spec new/myrlyn-1.1.2/package/myrlyn.spec --- old/myrlyn-1.1.1/package/myrlyn.spec 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/package/myrlyn.spec 2026-11-22 20:17:46.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package myrlyn # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2026 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ Name: myrlyn # If you change the version here, don't forget ../VERSION.cmake ! # To increase only the last number, use rake version:bump -Version: 1.1.1 +Version: 1.1.2 Release: 0 Summary: Package manager GUI License: GPL-2.0-only diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/CMakeLists.txt new/myrlyn-1.1.2/src/CMakeLists.txt --- old/myrlyn-1.1.1/src/CMakeLists.txt 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/src/CMakeLists.txt 2026-11-22 20:17:46.000000000 +0100 @@ -23,6 +23,7 @@ Logger.cc LogStream.cc Exception.cc + ExpiredGpgKeyDialog.cc FSize.cc InitReposPage.cc KeyRingCallbacks.cc @@ -134,6 +135,7 @@ set( UI_FILES about-dialog.ui init-repos-page.ui + expired-gpg-key-dialog.ui pkg-commit-page.ui progress-dialog.ui repo-config.ui diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/ExpiredGpgKeyDialog.cc new/myrlyn-1.1.2/src/ExpiredGpgKeyDialog.cc --- old/myrlyn-1.1.1/src/ExpiredGpgKeyDialog.cc 1970-01-01 01:00:00.000000000 +0100 +++ new/myrlyn-1.1.2/src/ExpiredGpgKeyDialog.cc 2026-11-22 20:17:46.000000000 +0100 @@ -0,0 +1,96 @@ +/* --------------------------------------------------------- + __ __ _ + | \/ |_ _ _ __| |_ _ _ __ + | |\/| | | | | '__| | | | | '_ \ + | | | | |_| | | | | |_| | | | | + |_| |_|\__, |_| |_|\__, |_| |_| + |___/ |___/ + --------------------------------------------------------- + + Project: Myrlyn Package Manager GUI + Copyright (c) Stefan Hundhammer <[email protected]> + License: GPL V2 - See file LICENSE for details. + + */ + + +#include <QMessageBox> + +#include "Exception.h" +#include "Logger.h" +#include "MainWindow.h" +#include "utf8.h" +#include "YQi18n.h" +#include "ExpiredGpgKeyDialog.h" + + +ExpiredGpgKeyDialog::ExpiredGpgKeyDialog( const zypp::PublicKey & key, + QWidget * parent ) + : QDialog( parent ? parent : MainWindow::instance() ) + , _ui( new Ui::ExpiredGpgKeyDialog ) // Use the Qt designer .ui form (XML) +{ + CHECK_NEW( _ui ); + _ui->setupUi( this ); // Actually create the widgets from the .ui form + + + // See ui_expired-gpg-key-dialog.h for the widget names. + // + // That header is generated by Qt's uic (user interface compiler) + // from the XML .ui file created with Qt designer. + // + // Take care in Qt designer to give each widget a meaningful name in the + // widget tree at the top right: They are also the member variable names + // for the _ui object. + + setText( _ui->fingerprint, zypp::str::gapify( key.fingerprint(), 4 ) ); + setText( _ui->keyName, key.name() ); + setText( _ui->keyId, key.id() ); + setText( _ui->keyCreated, key.created().form( "%F" ) ); // ISO date ("2025-01-15"); see 'man strftime' + setText( _ui->keyExpires, key.expires().form( "%F" ) ); + + qApp->setOverrideCursor( Qt::ArrowCursor ); + + connect( _ui->deleteKeyButton, SIGNAL ( clicked() ), + this, SLOT ( accept() ) ); + + connect( _ui->cancelButton, SIGNAL( clicked() ), + this, SLOT ( reject() ) ); + + logDebug() << "Asking user to delete the expired GPG key " << key.name() << endl; +} + + +ExpiredGpgKeyDialog::~ExpiredGpgKeyDialog() +{ + delete _ui; +} + + +void ExpiredGpgKeyDialog::accept() +{ + logResult( "Accepting" ); + + qApp->restoreOverrideCursor(); + QDialog::accept(); +} + + +void ExpiredGpgKeyDialog::reject() +{ + logResult( "Rejecting" ); + + qApp->restoreOverrideCursor(); + QDialog::reject(); +} + + +void ExpiredGpgKeyDialog::logResult( const QString & result ) +{ + logInfo() << result << " deleting expired GPG key " << _ui->keyName->text() << endl; +} + + +void ExpiredGpgKeyDialog::setText( QLabel * label, const std::string & text ) +{ + label->setText( fromUTF8( text ) ); +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/ExpiredGpgKeyDialog.h new/myrlyn-1.1.2/src/ExpiredGpgKeyDialog.h --- old/myrlyn-1.1.1/src/ExpiredGpgKeyDialog.h 1970-01-01 01:00:00.000000000 +0100 +++ new/myrlyn-1.1.2/src/ExpiredGpgKeyDialog.h 2026-11-22 20:17:46.000000000 +0100 @@ -0,0 +1,75 @@ +/* --------------------------------------------------------- + __ __ _ + | \/ |_ _ _ __| |_ _ _ __ + | |\/| | | | | '__| | | | | '_ \ + | | | | |_| | | | | |_| | | | | + |_| |_|\__, |_| |_|\__, |_| |_| + |___/ |___/ + --------------------------------------------------------- + + Project: Myrlyn Package Manager GUI + Copyright (c) Stefan Hundhammer <[email protected]> + License: GPL V2 - See file LICENSE for details. + + */ + + +#ifndef ExpiredGpgKeyDialog_h +#define ExpiredGpgKeyDialog_h + + +#include <string> +#include <zypp/PublicKey.h> + +#include <QDialog> + +#include "YQZypp.h" + + +// Generated with 'uic' from a Qt designer .ui form: repo-gpg-key-import-dialog.ui +// +// Check out ../build/src/myrlyn_autogen/include/ui_expired-gpg-key-dialog.h +// for the variable names of the widgets. + +#include "ui_expired-gpg-key-dialog.h" + + +/** + * Dialog to import a GPG public key from a repository. + **/ +class ExpiredGpgKeyDialog: public QDialog +{ + Q_OBJECT + +public: + + ExpiredGpgKeyDialog( const zypp::PublicKey & key, + QWidget * parent = 0 ); + + virtual ~ExpiredGpgKeyDialog(); + +public slots: + + void accept() override; + void reject() override; + + +protected: + + /** + * Log the user's answer for either "Accepting" or "Rejecting". + **/ + void logResult( const QString & result ); + + /** + * Set a QLabel with a std::string. + **/ + void setText( QLabel * label, const std::string & text ); + + + // Data members + + Ui::ExpiredGpgKeyDialog * _ui; // See ui_expired-gpg-key-dialog.ui +}; + +#endif // ExpiredGpgKeyDialog_h diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/MyrlynApp.cc new/myrlyn-1.1.2/src/MyrlynApp.cc --- old/myrlyn-1.1.1/src/MyrlynApp.cc 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/src/MyrlynApp.cc 2026-11-22 20:17:46.000000000 +0100 @@ -40,6 +40,8 @@ #include "ZyppLogger.h" #include "MyrlynApp.h" +#define MAX_ZYPPER_ARG_LEN 100 + using LogStr::hex; using LogStr::dec; @@ -505,6 +507,122 @@ } +void +MyrlynApp::zyppIsLockedPopup() +{ + QString message = _( "Can't connect to the package manager!\n" + "It may be busy in another window.\n" ); + QString msgDetails; + + long pid = readZyppLockPid(); + + if ( pid > -1 ) + { + msgDetails = _( "Locking process:\nPID %1 %2" ) + .arg( pid ) + .arg( prettyCommand( readPidCommandLine( pid ) ) ); + + message += "\n" + msgDetails; + logInfo() << msgDetails.simplified() << endl; + } + + QMessageBox::warning( 0, // parent + _( "Error" ), + message ); +} + + +long +MyrlynApp::readZyppLockPid() +{ + QFile file( "/run/zypp.pid" ); + + if ( ! file.open( QIODevice::ReadOnly | QIODevice::Text ) ) + { + logError() << "Can't open " << file.fileName() << endl; + return -1; // error + } + + QTextStream stream( &file ); + + QString line = stream.readLine().trimmed(); + bool ok = false;; + long pid = line.toLong( &ok ); + + return ok ? pid : -1; +} + + +QString +MyrlynApp::readPidCommandLine( long pid ) +{ + QFile file( QString( "/proc/%1/cmdline" ).arg( pid ) ); + + if ( ! file.open( QIODevice::ReadOnly | QIODevice::Text ) ) + { + logError() << "Can't open " << file.fileName() << endl; + return QString(); + } + + QTextStream stream( &file ); + QString line = stream.readLine(); + line.replace( '\0', ' ' ); // Command line arguments are separated with '\0' + + return line; +} + + +QString +MyrlynApp::prettyCommand( const QString & rawCommandLine ) +{ + // Sample input data: + // + // /usr/bin/myrlyn + // zypper in xhost + // zypper dup + // + // /usr/bin/ruby.ruby3.3 --encoding=utf-8 /usr/lib/YaST2/bin/y2start sw_single qt -name YaST2 + + QString commandLine = rawCommandLine.simplified(); + QString result = commandLine; + QString command = commandLine.section( ' ', 0, 0 ); // first word only + QString args = commandLine.section( ' ', 1 ); // the rest + + command = command.section( '/', -1 ).toLower(); // basename only, no path + + if ( command.contains( "myrlyn" ) ) + { + result = "Myrlyn"; + } + else if ( command.contains( "ruby" ) && args.contains( "y2start" ) ) + { + result = "YaST"; + + if ( args.contains( " installation " ) ) + result += " installation"; + else if ( args.contains( " update " ) || args.contains( " upgrade ") ) + result += " upgrade"; + else if ( args.contains( " sw_single " ) ) + result += " sw_single"; + } + else if ( command.contains( "zypper" ) ) + { + result = "zypper"; + + if ( args.size() < MAX_ZYPPER_ARG_LEN ) + result += QString( " " ) + args; + else + result += QString( " " ) + args.left( MAX_ZYPPER_ARG_LEN ) + "..."; + } + else if ( command.toLower().contains( "packagekit" ) ) + result = command; + + // logDebug() << result << " from \"" << rawCommandLine << "\"" << endl; + + return result; +} + + QFont MyrlynApp::font() { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/MyrlynApp.h new/myrlyn-1.1.2/src/MyrlynApp.h --- old/myrlyn-1.1.1/src/MyrlynApp.h 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/src/MyrlynApp.h 2026-11-22 20:17:46.000000000 +0100 @@ -97,6 +97,35 @@ void run(); /** + * Post a "zypp is locked" popup, including the locking process and its + * program name. + **/ + static void zyppIsLockedPopup(); + + /** + * Read the PID of the locking process from the /run/zypp.pid zypp lock file. + * Return -1 if error. + **/ + static long readZyppLockPid(); + + /** + * Read the command line of a PID from /proc/<pid>/cmdline. + * Return an empty string if error. + **/ + static QString readPidCommandLine( long pid ); + + /** + * Convert a raw command line into a pretty human readable command: + * /usr/bin/myrlyn -> Myrlyn + * zypper in foo -> zypper in foo + * zypper dup -> zypper dup + * + * /usr/bin/ruby.ruby3.4 --encoding=utf-8 /usr/lib/YaST2/bin/y2start sw_single qt -name YaST2 + * -> YaST sw_single + **/ + static QString prettyCommand( const QString & rawCommand ); + + /** * Return 'true' if this program is running with root privileges * or if OptFakeRoot (--fake-root) is set. * @@ -330,4 +359,5 @@ static QColor _blueTextColor; }; + #endif // MyrlynApp_h diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/MyrlynRepoManager.cc new/myrlyn-1.1.2/src/MyrlynRepoManager.cc --- old/myrlyn-1.1.1/src/MyrlynRepoManager.cc 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/src/MyrlynRepoManager.cc 2026-11-22 20:17:46.000000000 +0100 @@ -21,10 +21,14 @@ #include <QMessageBox> #include <zypp/ZYppFactory.h> +#include <zypp/KeyRing.h> #include <zypp/Locale.h> +#include <zypp/PublicKey.h> #include <zypp/ZConfig.h> +#include <zypp/target/rpm/RpmDb.h> #include "Exception.h" +#include "ExpiredGpgKeyDialog.h" #include "KeyRingCallbacks.h" #include "Logger.h" #include "MainWindow.h" @@ -35,7 +39,8 @@ #include "MyrlynRepoManager.h" -MyrlynRepoManager::MyrlynRepoManager() +MyrlynRepoManager::MyrlynRepoManager(): + _cacheDirty( false ) { logDebug() << "Creating MyrlynRepoManager" << endl; } @@ -166,10 +171,36 @@ } -void MyrlynRepoManager::attachRepos() +void MyrlynRepoManager::checkGpgKeys() { - // TO DO: check and load services (?) + zypp::KeyRing_Ptr keyRing = zyppPtr()->keyRing(); + CHECK_PTR( keyRing ); + + for ( const zypp::PublicKey & key: keyRing->trustedPublicKeys() ) + { + logInfo() << "Checking GPG key: " << key.name() << endl; + + if ( key.expired() ) + { + handleExpiredGpgKey( key ); + } + else if ( keyMatchesDelKeyEnvVar( key ) ) // $MYRLYN_DEL_KEY + { + if ( confirmExpiredGpgKey( key ) ) // For debugging + deleteGpgKey( key ); + } + else + { + logInfo() << " OK; days to live: " << key.daysToLive() + << " expires: " << key.expires().form( "%F" ) // ISO date + << endl; + } + } +} + +void MyrlynRepoManager::attachRepos() +{ try { findEnabledRepos(); @@ -182,7 +213,7 @@ if ( ! MyrlynApp::runningAsRealRoot() ) { - notifyUserToRunZypperDup(); + notifyUserToRunZypperRefresh(); logInfo() << "Exiting." << endl; exit( 1 ); @@ -239,6 +270,13 @@ { try { + if ( _cacheDirty ) + { + logInfo() << "Cleaning metadata cache for repo " << repo.name() << endl; + repoManager()->cleanCache( repo ); + repoManager()->cleanMetadata( repo ); + } + timer.start(); logInfo() << "Refreshing repo " << repo.name() << "..." << endl; emit refreshRepoStart( repo ); @@ -268,6 +306,7 @@ } } + _cacheDirty = false; showFailedRepos(); } @@ -289,7 +328,7 @@ } -void MyrlynRepoManager::notifyUserToRunZypperDup() const +void MyrlynRepoManager::notifyUserToRunZypperRefresh() const { logInfo() << "Run 'sudo zypper refresh' and restart the program." << endl; @@ -337,3 +376,67 @@ _( "Warning" ), // window title msg ); } + + +void MyrlynRepoManager::handleExpiredGpgKey( const zypp::PublicKey & key ) +{ + logWarning() << " Key is EXPIRED! " << key.expires().form( "%F" ) << endl; + + if ( confirmExpiredGpgKey( key ) ) + deleteGpgKey( key ); +} + + +void MyrlynRepoManager::deleteGpgKey( const zypp::PublicKey & key ) +{ + if ( ! MyrlynApp::runningAsRealRoot() ) + { + logWarning() << " Can't delete a GPG key without root privileges." << endl; + logWarning() << " Delete it manually with: sudo rpm --erase --allmatches " + << key.rpmName() + << endl; + return; + } + + logInfo() << " Deleting GPG key " << key.name() << endl; + logInfo() << " ID: " << key.id() << endl; + logInfo() << " RPM name: " << key.rpmName() << endl; + + try + { + zyppPtr()->keyRing()->deleteKey( key.id(), /* trusted */ true ); + zyppPtr()->target()->rpmDb().removePubkey( key ); + } + catch ( const zypp::Exception & ex ) + { + logError() << "Caught zypp exception: " << ex.asString() << endl; + } + + _cacheDirty = true; +} + + +bool MyrlynRepoManager::keyMatchesDelKeyEnvVar( const zypp::PublicKey & key ) const +{ + static const char envVarName[] = "MYRLYN_DEL_KEY"; + static QString delKey = QString::fromUtf8( qgetenv( envVarName ) ); + + if ( delKey.isEmpty() ) + return false; // no match + + bool match = fromUTF8( key.name() ).contains( delKey, Qt::CaseInsensitive ); + + if ( match ) + logInfo() << "Key name contains $" << envVarName << " \"" << delKey << "\"" << endl; + + return match; +} + + +bool MyrlynRepoManager::confirmExpiredGpgKey( const zypp::PublicKey & key ) const +{ + ExpiredGpgKeyDialog dialog( key ); + int result = dialog.exec(); + + return result == QDialog::Accepted; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/MyrlynRepoManager.h new/myrlyn-1.1.2/src/MyrlynRepoManager.h --- old/myrlyn-1.1.1/src/MyrlynRepoManager.h 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/src/MyrlynRepoManager.h 2026-11-22 20:17:46.000000000 +0100 @@ -67,6 +67,12 @@ void initTarget(); /** + * Check the repos' GPG keys and warn about any expired keys or keys that + * are about to expire soon. + **/ + void checkGpgKeys(); + + /** * Attach the active repos and load their resolvables. **/ void attachRepos(); @@ -155,10 +161,10 @@ void loadRepos(); /** - * Notify the user to run 'zypper dup' in a warning pop-up and on stderr. + * Notify the user to run 'zypper refresh' in a warning pop-up and on stderr. * This does not exit. **/ - void notifyUserToRunZypperDup() const; + void notifyUserToRunZypperRefresh() const; /** * Show a popup dialog with the names of repos that failed to refresh. @@ -166,6 +172,32 @@ **/ void showFailedRepos() const; + /** + * Handle an expired GPG key: Inform the user, and if confirmed, delete it. + **/ + void handleExpiredGpgKey( const zypp::PublicKey & key ); + + /** + * Delete a GPG key from the key ring and from the RPM database. + **/ + void deleteGpgKey( const zypp::PublicKey & key ); + + /** + * Return 'true' if the name of the specified key contains the value of the + * $MYRLYN_DEL_KEY environment variable. + * + * This is meant mostly for debugging: + * + * MYRLYN_DEL_KEY=PackMan sudo -E myrlyn + **/ + bool keyMatchesDelKeyEnvVar( const zypp::PublicKey & key ) const; + + /** + * Open a dialog to confirm deleting an expired GPG key. + * Return 'true' if the user confirms, 'false' if not. + **/ + bool confirmExpiredGpgKey( const zypp::PublicKey & key ) const; + // // Data members @@ -175,6 +207,7 @@ RepoManager_Ptr _repo_manager_ptr; RepoInfoList _repos; RepoInfoList _failedRepos; + bool _cacheDirty; }; #endif // MyrlynRepoManager_h diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/MyrlynWorkflowSteps.cc new/myrlyn-1.1.2/src/MyrlynWorkflowSteps.cc --- old/myrlyn-1.1.1/src/MyrlynWorkflowSteps.cc 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/src/MyrlynWorkflowSteps.cc 2026-11-22 20:17:46.000000000 +0100 @@ -165,17 +165,13 @@ catch ( ... ) { normalCursor(); - QString message = _( "Can't connect to the package manager!\n" - "It may be busy in another window.\n" ); - - QMessageBox::warning( 0, // parent - _( "Error" ), - message ); + MyrlynApp::zyppIsLockedPopup(); throw; // Nothing else that we can do here } repoMan->initTarget(); + repoMan->checkGpgKeys(); repoMan->attachRepos(); normalCursor(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/YQPkgFilterTab.cc new/myrlyn-1.1.2/src/YQPkgFilterTab.cc --- old/myrlyn-1.1.1/src/YQPkgFilterTab.cc 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/src/YQPkgFilterTab.cc 2026-11-22 20:17:46.000000000 +0100 @@ -223,6 +223,7 @@ delete page; _priv->pages.clear(); + delete _priv; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/YQPkgFilterTab.h new/myrlyn-1.1.2/src/YQPkgFilterTab.h --- old/myrlyn-1.1.1/src/YQPkgFilterTab.h 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/src/YQPkgFilterTab.h 2026-11-22 20:17:46.000000000 +0100 @@ -18,8 +18,6 @@ #define YQPkgFilterTab_h -#include <memory> - #include <QAction> #include <QHash> #include <QKeySequence> @@ -256,7 +254,7 @@ private: - const std::unique_ptr<YQPkgFilterTabPrivate> _priv; + YQPkgFilterTabPrivate * _priv; }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/YQPkgSelectorHelp.cc new/myrlyn-1.1.2/src/YQPkgSelectorHelp.cc --- old/myrlyn-1.1.1/src/YQPkgSelectorHelp.cc 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/src/YQPkgSelectorHelp.cc 2026-11-22 20:17:46.000000000 +0100 @@ -83,12 +83,12 @@ void YQPkgSelector::about() { QDialog aboutDialog( this ); - Ui::AboutDialog * ui( new Ui::AboutDialog ); - ui->setupUi( &aboutDialog ); + Ui::AboutDialog ui; + ui.setupUi( &aboutDialog ); - QString text = ui->heading->text(); + QString text = ui.heading->text(); text += QString( " %1" ).arg( VERSION ); - ui->heading->setText( text ); + ui.heading->setText( text ); QStringList contributors = QStringList() << "\n" // The "\n" is needed for the join() << fromUTF8( "@gruenich (Christoph Grüninger)" ) @@ -97,9 +97,8 @@ << "@slothsnow" << "@Sauerlandlinux (Stephan Hemeier)" ; - ui->contributorsText->setText( contributors.join( "\n- " ) );; + ui.contributorsText->setText( contributors.join( "\n- " ) );; aboutDialog.exec(); - delete ui; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/ZyppHistoryParser.cc new/myrlyn-1.1.2/src/ZyppHistoryParser.cc --- old/myrlyn-1.1.1/src/ZyppHistoryParser.cc 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/src/ZyppHistoryParser.cc 2026-11-22 20:17:46.000000000 +0100 @@ -19,11 +19,11 @@ #include <QElapsedTimer> #include "ZyppHistoryParser.h" +#include "MyrlynApp.h" #include "Logger.h" #include "Exception.h" #define MAX_ERR_COUNT 100 -#define MAX_ZYPPER_ARG_LEN 100 using namespace ZyppHistoryEvents; @@ -174,7 +174,7 @@ QString command = fields.at( 3 ).simplified(); command.remove( '\'' ); // Remove all single quotes: 'zypper' 'in' 'xhost' event->rawCommand = command; - event->command = prettyCommand( command ); + event->command = MyrlynApp::prettyCommand( command ); _lastCommand = event; // Intentionally not doing @@ -381,56 +381,6 @@ } -QString ZyppHistoryParser::prettyCommand( const QString & rawCommandLine ) -{ - // Sample input data: - // - // /usr/bin/myrlyn - // zypper in xhost - // zypper dup - // - // /usr/bin/ruby.ruby3.3 --encoding=utf-8 /usr/lib/YaST2/bin/y2start sw_single qt -name YaST2 - - QString commandLine = rawCommandLine.simplified(); - QString result = commandLine; - QString command = commandLine.section( ' ', 0, 0 ); // first word only - QString args = commandLine.section( ' ', 1 ); // the rest - - command = command.section( '/', -1 ).toLower(); // basename only, no path - - if ( command.contains( "myrlyn" ) ) - { - result = "Myrlyn"; - } - else if ( command.contains( "ruby" ) && args.contains( "y2start" ) ) - { - result = "YaST"; - - if ( args.contains( " installation " ) ) - result += " installation"; - else if ( args.contains( " update " ) || args.contains( " upgrade ") ) - result += " upgrade"; - else if ( args.contains( " sw_single " ) ) - result += " sw_single"; - } - else if ( command.contains( "zypper" ) ) - { - result = "zypper"; - - if ( args.size() < MAX_ZYPPER_ARG_LEN ) - result += QString( " " ) + args; - else - result += QString( " " ) + args.left( MAX_ZYPPER_ARG_LEN ) + "..."; - } - else if ( command.toLower().contains( "packagekit" ) ) - result = command; - - // logDebug() << result << " from \"" << rawCommandLine << "\"" << endl; - - return result; -} - - void ZyppHistoryParser::addChildEvent( Event * event ) { CHECK_PTR( event ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/ZyppHistoryParser.h new/myrlyn-1.1.2/src/ZyppHistoryParser.h --- old/myrlyn-1.1.1/src/ZyppHistoryParser.h 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/src/ZyppHistoryParser.h 2026-11-22 20:17:46.000000000 +0100 @@ -76,9 +76,8 @@ **/ bool checkFieldsCount( const QStringList & fields, int requiredCount ); - void finalizeLastCommand(); - QString prettyCommand( const QString & rawCommand ); - void addChildEvent( ZyppHistoryEvents::Event * event ); + void finalizeLastCommand(); + void addChildEvent( ZyppHistoryEvents::Event * event ); // diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/ZyppLogger.h new/myrlyn-1.1.2/src/ZyppLogger.h --- old/myrlyn-1.1.1/src/ZyppLogger.h 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/src/ZyppLogger.h 2026-11-22 20:17:46.000000000 +0100 @@ -18,7 +18,6 @@ #define ZyppLogger_h -#include <memory> #include <string> #include <QMutex> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/expired-gpg-key-dialog.ui new/myrlyn-1.1.2/src/expired-gpg-key-dialog.ui --- old/myrlyn-1.1.1/src/expired-gpg-key-dialog.ui 1970-01-01 01:00:00.000000000 +0100 +++ new/myrlyn-1.1.2/src/expired-gpg-key-dialog.ui 2026-11-22 20:17:46.000000000 +0100 @@ -0,0 +1,321 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>ExpiredGpgKeyDialog</class> + <widget class="QDialog" name="ExpiredGpgKeyDialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>660</width> + <height>440</height> + </rect> + </property> + <property name="windowTitle"> + <string>GPG Key</string> + </property> + <property name="sizeGripEnabled"> + <bool>true</bool> + </property> + <property name="modal"> + <bool>true</bool> + </property> + <layout class="QVBoxLayout" name="outerLayout" stretch="0,1,0,2,0,5,0"> + <property name="spacing"> + <number>15</number> + </property> + <property name="leftMargin"> + <number>25</number> + </property> + <property name="topMargin"> + <number>15</number> + </property> + <property name="rightMargin"> + <number>25</number> + </property> + <property name="bottomMargin"> + <number>15</number> + </property> + <item> + <widget class="QLabel" name="heading"> + <property name="text"> + <string>## Expired Repository GPG Key</string> + </property> + <property name="textFormat"> + <enum>Qt::TextFormat::MarkdownText</enum> + </property> + <property name="alignment"> + <set>Qt::AlignmentFlag::AlignCenter</set> + </property> + </widget> + </item> + <item> + <spacer name="topVSpacer"> + <property name="orientation"> + <enum>Qt::Orientation::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Policy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>0</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QFormLayout" name="formLayout"> + <property name="labelAlignment"> + <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set> + </property> + <property name="horizontalSpacing"> + <number>20</number> + </property> + <property name="verticalSpacing"> + <number>8</number> + </property> + <item row="0" column="0"> + <widget class="QLabel" name="fingerprintCaption"> + <property name="text"> + <string>**Fingerprint:**</string> + </property> + <property name="textFormat"> + <enum>Qt::TextFormat::MarkdownText</enum> + </property> + <property name="alignment"> + <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::NoTextInteraction</set> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QLabel" name="fingerprint"> + <property name="text"> + <string notr="true">00AA 11BB 22CC 33DD 44EE 55FF 66AA 77BB 88CC 99DD</string> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse</set> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QLabel" name="keyName"> + <property name="text"> + <string notr="true"><Key Name></string> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse</set> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="keyIdCaption"> + <property name="text"> + <string>**Key ID:**</string> + </property> + <property name="textFormat"> + <enum>Qt::TextFormat::MarkdownText</enum> + </property> + <property name="alignment"> + <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::NoTextInteraction</set> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QLabel" name="keyId"> + <property name="text"> + <string notr="true"><Key ID></string> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse</set> + </property> + </widget> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="keyCreatedCaption"> + <property name="text"> + <string>**Created:**</string> + </property> + <property name="textFormat"> + <enum>Qt::TextFormat::MarkdownText</enum> + </property> + <property name="alignment"> + <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::NoTextInteraction</set> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QLabel" name="keyCreated"> + <property name="text"> + <string notr="true">2038-12-30</string> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse</set> + </property> + </widget> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="keyExpiresCaption"> + <property name="text"> + <string>**Expired:**</string> + </property> + <property name="textFormat"> + <enum>Qt::TextFormat::MarkdownText</enum> + </property> + <property name="alignment"> + <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::NoTextInteraction</set> + </property> + </widget> + </item> + <item row="4" column="1"> + <widget class="QLabel" name="keyExpires"> + <property name="text"> + <string notr="true">2038-12-31</string> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse</set> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="keyNameCaption"> + <property name="text"> + <string>**Key Name:**</string> + </property> + <property name="textFormat"> + <enum>Qt::TextFormat::MarkdownText</enum> + </property> + <property name="alignment"> + <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::NoTextInteraction</set> + </property> + </widget> + </item> + </layout> + </item> + <item> + <spacer name="middleVSpacer"> + <property name="orientation"> + <enum>Qt::Orientation::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Policy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>188</width> + <height>88</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="explanationLabel"> + <property name="text"> + <string>Delete this GPG key; it can no longer be used. + +If it is still needed, in the next step (repositories refresh), the latest version will be reimported from its repository.</string> + </property> + <property name="textFormat"> + <enum>Qt::TextFormat::MarkdownText</enum> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <spacer name="bottomVSpacer"> + <property name="orientation"> + <enum>Qt::Orientation::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Policy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>0</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Orientation::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="deleteKeyButton"> + <property name="text"> + <string>&Delete Key</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Orientation::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Policy::Preferred</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="cancelButton"> + <property name="text"> + <string>&Cancel</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_3"> + <property name="orientation"> + <enum>Qt::Orientation::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/myrlyn-sudo new/myrlyn-1.1.2/src/myrlyn-sudo --- old/myrlyn-1.1.1/src/myrlyn-sudo 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/src/myrlyn-sudo 2026-11-22 20:17:46.000000000 +0100 @@ -27,7 +27,7 @@ # Environment variables to keep for the 'sudo' call ENV_KEEP="DISPLAY WAYLAND_DISPLAY XAUTHORITY \ XDG_RUNTIME_DIR XDG_CURRENT_DESKTOP XDG_CONFIG_DIRS \ -KDE_FULL_SESSION XFCE_THEME MYRLYN_HELP \ +KDE_FULL_SESSION XFCE_THEME MYRLYN_HELP MYRLYN_DEL_KEY \ QT_QPA_PLATFORMTHEME QT_ENABLE_HIGHDPI_SCALING QT_SCALE_FACTOR \ LANG LANGUAGE LC_MESSAGES LC_COLLATE LC_NUMERIC LC_TIME LC_ALL" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/myrlyn-1.1.1/src/repo-gpg-key-import-dialog.ui new/myrlyn-1.1.2/src/repo-gpg-key-import-dialog.ui --- old/myrlyn-1.1.1/src/repo-gpg-key-import-dialog.ui 2026-11-13 12:52:07.000000000 +0100 +++ new/myrlyn-1.1.2/src/repo-gpg-key-import-dialog.ui 2026-11-22 20:17:46.000000000 +0100 @@ -7,7 +7,7 @@ <x>0</x> <y>0</y> <width>795</width> - <height>391</height> + <height>395</height> </rect> </property> <property name="windowTitle"> @@ -41,20 +41,20 @@ <string>## Import Untrusted GPG Key</string> </property> <property name="textFormat"> - <enum>Qt::MarkdownText</enum> + <enum>Qt::TextFormat::MarkdownText</enum> </property> <property name="alignment"> - <set>Qt::AlignCenter</set> + <set>Qt::AlignmentFlag::AlignCenter</set> </property> </widget> </item> <item> <spacer name="topSpacer"> <property name="orientation"> - <enum>Qt::Vertical</enum> + <enum>Qt::Orientation::Vertical</enum> </property> <property name="sizeType"> - <enum>QSizePolicy::Expanding</enum> + <enum>QSizePolicy::Policy::Expanding</enum> </property> <property name="sizeHint" stdset="0"> <size> @@ -67,7 +67,7 @@ <item> <layout class="QFormLayout" name="formLayout"> <property name="labelAlignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set> </property> <property name="horizontalSpacing"> <number>20</number> @@ -78,13 +78,16 @@ <item row="0" column="0"> <widget class="QLabel" name="repoNameCaption"> <property name="text"> - <string>_Repository:_</string> + <string>**Repository:**</string> </property> <property name="textFormat"> - <enum>Qt::MarkdownText</enum> + <enum>Qt::TextFormat::MarkdownText</enum> </property> <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::NoTextInteraction</set> </property> </widget> </item> @@ -93,18 +96,24 @@ <property name="text"> <string notr="true"><RepoName></string> </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse</set> + </property> </widget> </item> <item row="1" column="0"> <widget class="QLabel" name="repoUrlCaption"> <property name="text"> - <string>_URL:_</string> + <string>**URL:**</string> </property> <property name="textFormat"> - <enum>Qt::MarkdownText</enum> + <enum>Qt::TextFormat::MarkdownText</enum> </property> <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::NoTextInteraction</set> </property> </widget> </item> @@ -113,18 +122,24 @@ <property name="text"> <string notr="true">https://my.repo.org/repos/may/have/a/pretty/damn/long/url/plus/reserve</string> </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::LinksAccessibleByKeyboard|Qt::TextInteractionFlag::LinksAccessibleByMouse|Qt::TextInteractionFlag::TextBrowserInteraction|Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse</set> + </property> </widget> </item> <item row="2" column="0"> <widget class="QLabel" name="fingerprintCaption"> <property name="text"> - <string>_Fingerprint:_</string> + <string>**Fingerprint:**</string> </property> <property name="textFormat"> - <enum>Qt::MarkdownText</enum> + <enum>Qt::TextFormat::MarkdownText</enum> </property> <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::NoTextInteraction</set> </property> </widget> </item> @@ -133,18 +148,24 @@ <property name="text"> <string notr="true">00AA 11BB 22CC 33DD 44EE 55FF 66AA 77BB 88CC 99DD</string> </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse</set> + </property> </widget> </item> <item row="3" column="0"> <widget class="QLabel" name="keyNameCaption"> <property name="text"> - <string>_Key Name:_</string> + <string>**Key Name:**</string> </property> <property name="textFormat"> - <enum>Qt::MarkdownText</enum> + <enum>Qt::TextFormat::MarkdownText</enum> </property> <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::NoTextInteraction</set> </property> </widget> </item> @@ -153,18 +174,24 @@ <property name="text"> <string notr="true"><Key Name></string> </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse</set> + </property> </widget> </item> <item row="4" column="0"> <widget class="QLabel" name="keyAlgoCaption"> <property name="text"> - <string>_Key Algorithm:_</string> + <string>**Key Algorithm:**</string> </property> <property name="textFormat"> - <enum>Qt::MarkdownText</enum> + <enum>Qt::TextFormat::MarkdownText</enum> </property> <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::NoTextInteraction</set> </property> </widget> </item> @@ -173,18 +200,24 @@ <property name="text"> <string notr="true"><Key Algorithm></string> </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse</set> + </property> </widget> </item> <item row="5" column="0"> <widget class="QLabel" name="keyIdCaption"> <property name="text"> - <string>_Key ID:_</string> + <string>**Key ID:**</string> </property> <property name="textFormat"> - <enum>Qt::MarkdownText</enum> + <enum>Qt::TextFormat::MarkdownText</enum> </property> <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::NoTextInteraction</set> </property> </widget> </item> @@ -193,18 +226,24 @@ <property name="text"> <string notr="true"><Key ID></string> </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse</set> + </property> </widget> </item> <item row="6" column="0"> <widget class="QLabel" name="keyCreatedCaption"> <property name="text"> - <string>_Created:_</string> + <string>**Created:**</string> </property> <property name="textFormat"> - <enum>Qt::MarkdownText</enum> + <enum>Qt::TextFormat::MarkdownText</enum> </property> <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::NoTextInteraction</set> </property> </widget> </item> @@ -213,18 +252,24 @@ <property name="text"> <string notr="true">2038-12-30</string> </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse</set> + </property> </widget> </item> <item row="7" column="0"> <widget class="QLabel" name="keyExpiresCaption"> <property name="text"> - <string>_Expires:_</string> + <string>**Expires:**</string> </property> <property name="textFormat"> - <enum>Qt::MarkdownText</enum> + <enum>Qt::TextFormat::MarkdownText</enum> </property> <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::NoTextInteraction</set> </property> </widget> </item> @@ -233,6 +278,9 @@ <property name="text"> <string notr="true">2038-12-31</string> </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse</set> + </property> </widget> </item> </layout> @@ -240,10 +288,10 @@ <item> <spacer name="bottomSpacer"> <property name="orientation"> - <enum>Qt::Vertical</enum> + <enum>Qt::Orientation::Vertical</enum> </property> <property name="sizeType"> - <enum>QSizePolicy::Expanding</enum> + <enum>QSizePolicy::Policy::Expanding</enum> </property> <property name="sizeHint" stdset="0"> <size> @@ -258,7 +306,7 @@ <item> <spacer name="horizontalSpacer_2"> <property name="orientation"> - <enum>Qt::Horizontal</enum> + <enum>Qt::Orientation::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> @@ -278,10 +326,10 @@ <item> <spacer name="horizontalSpacer"> <property name="orientation"> - <enum>Qt::Horizontal</enum> + <enum>Qt::Orientation::Horizontal</enum> </property> <property name="sizeType"> - <enum>QSizePolicy::Preferred</enum> + <enum>QSizePolicy::Policy::Preferred</enum> </property> <property name="sizeHint" stdset="0"> <size> @@ -301,7 +349,7 @@ <item> <spacer name="horizontalSpacer_3"> <property name="orientation"> - <enum>Qt::Horizontal</enum> + <enum>Qt::Orientation::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> ++++++ myrlyn.obsinfo ++++++ --- /var/tmp/diff_new_pack.OfPlTF/_old 2026-11-23 12:31:03.834050954 +0100 +++ /var/tmp/diff_new_pack.OfPlTF/_new 2026-11-23 12:31:03.845051417 +0100 @@ -1,5 +1,5 @@ name: myrlyn -version: 1.1.1 -mtime: 1794570727 -commit: b9c7ad714ccc5f9d569dfee458d79da90fcb3f88 +version: 1.1.2 +mtime: 1795375066 +commit: c65bc5692923388cb334bd16a9d29ad5b5b22d60
