summaryrefslogtreecommitdiff
path: root/vendor/getinfo
AgeCommit message (Collapse)Author
2019-03-15vendor/getinfo: Don't assume that Ubuntu is the last vendorSimon McVittie
If your dpkg-vendor configuration in base-files is an Ubuntu derivative, but not exactly Ubuntu, and not an exact match for anything in vendor/, we want to use vendor/ubuntu. Previously we used whatever $DISTRO happened to be at the end of the "for" loop above, but that's undesirable: even if we assume that find(1) returns results in alphabetical order (which is not guaranteed), we wouldn't want to return a non-Ubuntu result if a future apt version happens to have a vendor that sorts later than vendor/ubuntu, for example vendor/zombieos or something. Closes: #924662 Signed-off-by: Simon McVittie <smcv@collabora.com>
2019-03-15vendor/getinfo: Iterate through vendors in lexicographic orderSimon McVittie
find(1) works in readdir() order, which isn't guaranteed to be sorted. If the current vendor is not an exact match for any subdirectory in vendor/, and is somehow a derivative of more than one of them, we should at least produce a deterministic answer. Closes: #924662 Signed-off-by: Simon McVittie <smcv@collabora.com>
2016-08-26Always pass a directory to find before an optionJulian Andres Klode
On BSD systems, we cannot simply use find -name or stuff, we always have to pass a directory name first. Gbp-Dch: ignore
2016-08-10vendor/getinfo: Accept --vendor VENDOR optionJulian Andres Klode
This can be used to query a field for a specific vendor. It also speeds up things a lot if we can cache the current vendor in cmake and pass it to further getinfo invocations. Gbp-Dch: ignore
2016-08-06vendor/getinfo: Teach it about sourceslist-list-formatJulian Andres Klode
This makes it easier to write a generic subsitution tool for handling substitutions in apt-key.in and sources.list.in Gbp-Dch: ignore
2016-08-06vendor/getinfo: Provide command to determine vendor to useJulian Andres Klode
Introduce the 'current' command to eventually replace the current symbolic link. The current command does roughly the same as the makefile, the code has just been cleaned up a bit to work better as a shell function. Gbp-Dch: ignore
2016-01-14evaluate sourceslist-list-format entity in vendors sources.listDavid Kalnischkies
Parsing XML entity files in shell isn't exactly nice and causing the substitution with a while-read loop isn't either, but it seems to be good enough for the moment without changing too much. Thanks: Niels Thykier for reporting on IRC
2016-01-14change debian related entities to a more explicit nameDavid Kalnischkies
Git-Dch: Ignore
2014-03-13autogenerate makefile for vendor systemDavid Kalnischkies
It can be useful to have a whole makefile available for vendor setup, but by providing a basic one we can deal with the simple cases more easily (and changes to the system are presumably easier).
2014-02-22add apt-vendor information for tangluJon Severinsson
2013-12-21vendor/steamos/*:Michael Vogt
* vendor/steamos/*: - add steamos support
2013-12-21vendor/getinfo:Michael Vogt
* vendor/getinfo: - fix ubuntu-codename
2013-12-01generate apt-key script with vendor info about keysDavid Kalnischkies
The apt-key script uses quiet a few keyring files for operation which are specific to the distribution it is build on and is hence one of the most patched parts – even if it is not that often used anymore now that a fragment directory for trusted.gpg exists.
2013-11-30use a substvar to set the archive-keyring in debian/controlDavid Kalnischkies
Adds a small helper to extract the small information bits we store in apt-vendor.ent and uses it in debian/rules to set apt:keyring as a substvar for debian/control populated with the &keyring-package; info