mbox

[bug#36919,0/2] Make the KDE updater find packaes in subdirectories

Message ID 20190804102559.32296-1-h.goebel@crazy-compilers.com
Headers show

Message

Hartmut Goebel Aug. 4, 2019, 10:25 a.m. UTC
Als make the KDE updater no longer rely on FTP access.

Formerly packages living in a path like
/stable/frameworks/5.60/portingAids/kross-5.60.0.tar.xz
have not been found due to the additional directory level.

These patches change the KDE updater to download the "ls -lR" file from
downloader.kde.org and use a pattern for searching the relevant files.

Sine I'm sitt a beginner in Guile, I apprechiate any enhancement suggestion to
the code. I assume esp. the loop in download.kde.org-files and
canonicalize-path could be written more scheme-ish.

Hartmut Goebel (2):
  gnu-maintenance: KDE updater no longer relies on FTP access.
  gnu-maintenance: KDE updater finds packages even in sub-directory.

 guix/gnu-maintenance.scm | 99 +++++++++++++++++++++++++++++++++++++---
 1 file changed, 92 insertions(+), 7 deletions(-)

Comments

Hartmut Goebel Aug. 4, 2019, 10:28 a.m. UTC | #1
Als make the KDE updater no longer rely on FTP access.

Formerly packages living in a path like
/stable/frameworks/5.60/portingAids/kross-5.60.0.tar.xz
have not been found due to the additional directory level.

These patches change the KDE updater to download the "ls -lR" file from
downloader.kde.org and use a pattern for searching the relevant files.

Sine I'm sitt a beginner in Guile, I apprechiate any enhancement suggestion to
the code. I assume esp. the loop in download.kde.org-files and
canonicalize-path could be written more scheme-ish.

Hartmut Goebel (2):
  gnu-maintenance: KDE updater no longer relies on FTP access.
  gnu-maintenance: KDE updater finds packages even in sub-directory.

 guix/gnu-maintenance.scm | 99 +++++++++++++++++++++++++++++++++++++---
 1 file changed, 92 insertions(+), 7 deletions(-)
Hartmut Goebel Sept. 3, 2019, 12:24 p.m. UTC | #2
Relevant changes:

* Moved kde code into a separete module. THis is done *after* the first change
  ("no longer relies on FTP access"9, since otherwise a lot of FTP-releated
  identifiers would have had to be exported in gnu-maintenance.scm.
* Using a custom write-cache to cache the evaluated file list, as suggested by
  Ludo
* Removed usage of 'set!'
* Using named let instead of 'do'


Hartmut Goebel (4):
  guix: Rename and move sans-extension to tarball-sans-extension.
  gnu-maintenance: KDE updater no longer relies on FTP access.
  upstream: Move KDE updater into a separate module.
  import: KDE updater finds packages even in sub-directory.

 Makefile.am              |   1 +
 guix/gnu-maintenance.scm |  44 +++------
 guix/import/kde.scm      | 190 +++++++++++++++++++++++++++++++++++++++
 guix/utils.scm           |   7 ++
 4 files changed, 210 insertions(+), 32 deletions(-)
 create mode 100644 guix/import/kde.scm