Code Monkey home page Code Monkey logo

dbscripts's Introduction

Arch Linux repository management scripts Build Status

Configuration

  • The default configuration can be found in config.
  • An optional config.local may override the default configuration.
  • The path and name of the local configuration file can be overridden by setting the DBSCRIPTS_CONFIG environment variable.

Overview

The executables that you (might) care about are:

dbscripts/
├── cron-jobs/
│   ├── devlist-mailer
│   ├── ftpdir-cleanup
│   ├── integrity-check
│   └── sourceballs
├── db-move
├── db-remove
├── db-repo-add
├── db-repo-remove
├── db-update
└── testing2x

Ok, now let's talk about what those are.

There are 3 "main" programs:

  • db-update : add packages to repositories
  • db-remove : remove packages from repositories
  • db-move : move packages from one repository to another

Moving packages from testing to stable repositories is such a common task that we have a wrapper around db-move to make it easier:

  • testing2x

Of course, sometimes things go wrong, and you need to drop to a lower-level, but you don't want to go all the way down to pacman's repo-add/repo-remove. So, we have:

  • db-repo-add
  • db-repo-remove

Now, we'd like to be able to check that the repos are all OK, so we have

  • cron-jobs/integrity-check

When we remove a package from a repository, it stays in the package "pool". We would like to be able to eventually remove packages from the pool, to reclaim the disk space:

  • cron-jobs/ftpdir-cleanup

Things that haven't been mentioned yet:

  • cron-jobs/devlist-mailer
  • cron-jobs/sourceballs

Testing

  • Install the make and docker packages. Start the docker daemon by issuing systemctl start docker.
  • The test suite can now be run with make test.
  • A coverage report can be generated with make test-coverage. Open coverage/index.html in your web browser to inspect the results.

License

For a long time, dbscripts didn't have an explicit license. Currently it is primarily licensed under the GPL-2.0-or-later, but some code is of unknown license. Details on clarifying the license status may be found in LICENSE_STATUS.md

tl;dr

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.