Skip to content
This repository has been archived by the owner on May 29, 2021. It is now read-only.

livingsilver94/stack-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stack-updater

Go Report Card 

stack-updater is a simple utility to ease Solus development. It's been written to automate big software stack updates (meaning pieces of software that come split in many packages), so that maintainers won't need to fetch tarballs manually and bump the release number in every package definition file anymore.
stack-updater doesn't need to be run on Solus to work.

How it works

stack-updater works by parsing the download page of a chosen software stack. Generally, these HTML pages are composed of a list (<ul>...items...</ul>) with tarball URLs so it's fairly easy to extract information from such contents.
After the list extraction, we check the Solus Unstable repository by downloading and reading the proper .xml file, and if a package is both in the repository and in the fetched list, stack-updater if needed will download the package definition files and update the package.yml file with new data.

Examples

The --help flag should provide all the necessary information. Anyway, here are some examples on how to run the command (note the : to separate stack name from a bundle):

stack-updater update kde:applications 19.04.0
stack-updater update mate 1.23
stack-updater update kde:frameworks 5.56 -t /destination/directory

Installation

  1. make to build the binary
  2. make install PREFIX=/my/prefix to install it

Optionally, you can run make test to ensure that tests pass before installing.

Dependencies

  • libgit2 (dynamically linked)
  • xz command

License

GNU Lesser General Public License v3.0 or later (LGPL-3.0-or-later).