Home > PyUpdater

PyUpdater

PyUpdater is a project mainly written in Python, based on the Security policy.

A package manager that works cross-platform, in Python 3.2

<!doctype HTML>

PyUpdater README
First, please note that this is in no way final work.
Second, it never will be. Updates may or may not be released over time.
Also note that Python 3.2 was used to make these.
If you like what I do, why not donate?

Navigation: +/-

Scripts

update.pyUpdate all or selected packages from packages.rules
backup.pyBackup all or selected packages from packages.rules
clean.pyClean up all or selected packages from packages.rules

packages.settings.json

This file contains the settings for general use (like work directory and mirrors, although currently only ONE mirror is possible)
tags:
mirrorWhere all packages are located. Packages will be downloaded from 'mirror'+'tarfile'.
workdirWhere to download the packages to, and the base dir of all installations and extractions.
backupdirThis is where backups are placed when running the backup script. WIP

packages.rules

This folder contains JSON files with rules on how and where to download packages from.
Each .json file...
  • ..Should contain at LEAST a "tarfile" tag. (name and instdir is NOT obligatory)
  • ..Should ALWAYS have the root tag be "package".
tags:
tarfile.tar.bz2 filename. Can be either abselute (mirror+tarfile) or direct (URL).
instdirpath to extract tarfile to.
dependList/array of dependencies (another package from packages.rules)

packages.checksum

This folder contains checksums (sha1 hashes) for every tarfile downloaded.
There should be a checksum residing on the server as either 'mirror'+'tarfile'+".checksum or 'tarfile'+".checksum.
The backup scripts generates .checksum files too, for each project and what not. A checksum consists of a sha1 hash of a tarfile (containing your package) and a newline char (\n).
Previous:swirly-main