From kde-panel-devel Mon Oct 31 17:19:58 2016 From: Marco Martin Date: Mon, 31 Oct 2016 17:19:58 +0000 To: kde-panel-devel Subject: Re: Review Request 129298: RFC: supporting dependencies on KPackage Message-Id: <20161031171958.5235.98029 () mimi ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=147793440520357 --===============3287531704202663818== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/129298/#review100442 ----------------------------------------------------------- yep, that's pretty much what i had in mind. it's early stage, but if someone doesn't have significant issues with it, i think is a good direction to go autotests/data/testpackagesdep/metadata.json (line 14) if kns ends up using ids, maybe the server should be specified as well, as the id would be server-dependent? src/kpackage/private/packagejobthread.cpp (line 436) would this need a local database of installed packages/dependencies? - Marco Martin On Oct. 31, 2016, 5:09 p.m., Aleix Pol Gonzalez wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://git.reviewboard.kde.org/r/129298/ > ----------------------------------------------------------- > > (Updated Oct. 31, 2016, 5:09 p.m.) > > > Review request for KDE Frameworks, Plasma, Dan Leinir Turthra Jensen, and Marco Martin. > > > Repository: kpackage > > > Description > ------- > > Makes it possible to specify components to be installed together with a KPackage. They will be specified by a url, we'll have handlers for any kind, making reasonably extensible and doesn't tie us to a technology. > > In this repository I created two Proof of Concept of such handlers, one for the appstream urls and one for KNS: kde:scratch/apol/kpackage-install-helpers > > > Diffs > ----- > > autotests/CMakeLists.txt 395b16e > autotests/data/testpackagesdep/contents/ui/main.qml PRE-CREATION > autotests/data/testpackagesdep/metadata.json PRE-CREATION > autotests/data/testpackagesdep/testpackagesdep.testappdataxml PRE-CREATION > src/kpackage/config-package.h.cmake 61f2f0c > src/kpackage/private/packagejobthread.cpp 0a0cc01 > src/kpackage/private/packagejobthread_p.h 1babf0b > > Diff: https://git.reviewboard.kde.org/r/129298/diff/ > > > Testing > ------- > > None. just builds. It's a proof of concept, not even the test I added was tested, it was just to display what it could look like. > > > Thanks, > > Aleix Pol Gonzalez > > --===============3287531704202663818== MIME-Version: 1.0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit
This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/129298/

yep, that's pretty much what i had in mind. it's early stage, but if someone doesn't have significant issues with it, i think is a good direction to go


autotests/data/testpackagesdep/metadata.json (Diff revision 1)
14
    "X-KPackage-Dependencies": [ "appstream:///eog-light-theme", "kns:///colors.knsrc/1159726" ],

if kns ends up using ids, maybe the server should be specified as well, as the id would be server-dependent?


src/kpackage/private/packagejobthread.cpp (Diff revision 1)
436
    //TODO refcount dependencies and uninstall if 0

would this need a local database of installed packages/dependencies?


- Marco Martin


On October 31st, 2016, 5:09 p.m. UTC, Aleix Pol Gonzalez wrote:

Review request for KDE Frameworks, Plasma, Dan Leinir Turthra Jensen, and Marco Martin.
By Aleix Pol Gonzalez.

Updated Oct. 31, 2016, 5:09 p.m.

Repository: kpackage

Description

Makes it possible to specify components to be installed together with a KPackage. They will be specified by a url, we'll have handlers for any kind, making reasonably extensible and doesn't tie us to a technology.

In this repository I created two Proof of Concept of such handlers, one for the appstream urls and one for KNS: kde:scratch/apol/kpackage-install-helpers

Testing

None. just builds. It's a proof of concept, not even the test I added was tested, it was just to display what it could look like.

Diffs

  • autotests/CMakeLists.txt (395b16e)
  • autotests/data/testpackagesdep/contents/ui/main.qml (PRE-CREATION)
  • autotests/data/testpackagesdep/metadata.json (PRE-CREATION)
  • autotests/data/testpackagesdep/testpackagesdep.testappdataxml (PRE-CREATION)
  • src/kpackage/config-package.h.cmake (61f2f0c)
  • src/kpackage/private/packagejobthread.cpp (0a0cc01)
  • src/kpackage/private/packagejobthread_p.h (1babf0b)

View Diff

--===============3287531704202663818==--