[libqapt] [Bug 375188] QApt::Backend::removePackages() does not remove dependent packages

2022-11-01 Thread Alexander Morozov
https://bugs.kde.org/show_bug.cgi?id=375188

Alexander Morozov  changed:

   What|Removed |Added

 Resolution|WAITINGFORINFO  |---
 Status|NEEDSINFO   |REPORTED

-- 
You are receiving this mail because:
You are watching all bug changes.

[libqapt] [Bug 375188] QApt::Backend::removePackages() does not remove dependent packages

2022-11-01 Thread Alexander Morozov
https://bugs.kde.org/show_bug.cgi?id=375188

--- Comment #2 from Alexander Morozov  ---
Created attachment 153380
  --> https://bugs.kde.org/attachment.cgi?id=153380=edit
Test program

This bug still can be reproduced.
Test program libqapt_remove uninstalls zsh-common.
With libqapt 3.0.5 on Debian Bullseye:

$ sudo LANG=C apt install zsh

The following additional packages will be installed:
  zsh-common
Suggested packages:
  zsh-doc
The following NEW packages will be installed:
  zsh zsh-common

$ ./libqapt_remove
started
$ dpkg -l | grep zsh
ii  zsh   5.8-6+deb11u1
 amd64shell with lots of features
rc  zsh-common5.8-6+deb11u1
 all  architecture independent files for Zsh
$ sudo LANG=C apt-get check
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 zsh : Depends: zsh-common (= 5.8-6+deb11u1) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or
specify a solution).

libqapt_remove code is attached.

-- 
You are receiving this mail because:
You are watching all bug changes.

[libqapt] [Bug 375188] New: QApt::Backend::removePackages() does not remove dependent packages

2017-01-17 Thread Alexander Morozov
https://bugs.kde.org/show_bug.cgi?id=375188

Bug ID: 375188
   Summary: QApt::Backend::removePackages() does not remove
dependent packages
   Product: libqapt
   Version: unspecified
  Platform: Other
OS: Linux
Status: UNCONFIRMED
  Severity: normal
  Priority: NOR
 Component: general
  Assignee: sit...@kde.org
  Reporter: a.moro...@drweb.com
  Target Milestone: ---

QApt::Backend::installPackages() honors dependencies but
QApt::Backend::removePackages() does not.

Let there are a package A and a package B which depends on A.
If I remove A with QApt::Backend::removePackages() B is not removed.

If I use QApt::Package::setRemove and QApt::Backend::commitChanges() B is
removed:

QApt::Backend *backend = ...
QApt::Package *pkg = backend->package("A");
pkg->setRemove();
backend->commitChanges();

-- 
You are receiving this mail because:
You are watching all bug changes.

[policykit-kde-agent-1] [Bug 365514] New: polkit-qt-1: Authority::checkAuthorizationFinished signal does not report who was authorized

2016-07-12 Thread Alexander Morozov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365514

Bug ID: 365514
   Summary: polkit-qt-1: Authority::checkAuthorizationFinished
signal does not report who was authorized
   Product: policykit-kde-agent-1
   Version: unspecified
  Platform: Other
OS: Linux
Status: UNCONFIRMED
  Severity: wishlist
  Priority: NOR
 Component: general
  Assignee: d...@kde.org
  Reporter: a.moro...@drweb.com

Let`s assume we use polkit-qt-1 library for authorization in our daemon.
The daemon receives user requests and try to authorize users calling
Authority::checkAuthorization.
If two Authority::checkAuthorization are called before receiving
Authority::checkAuthorizationFinished then the daemon can not determine who was
authorized on receiving Authority::checkAuthorizationFinished.
IMHO PolkitQt1::Authority class interface should be changed.

Reproducible: Always




polkit-qt-1 from git
commit id 50624e06e88aabd7ae123ad6a4495630f81cd706

-- 
You are receiving this mail because:
You are watching all bug changes.