Api/apt.addsource()

From Minux Wiki
Jump to navigation Jump to search

this api is used to add a repository source to apt


usage:

apt.addsource(url)


output:

if a url is provided it will try that url for a valid apt file and if it finds one registers this url as a source.

if one of the following strings is provided in stead, it will clear all sources and default to these:

"default" or "stable" = stable primary

"beta" - beta primary

"goldcube" - stable primary + goldcube stable