summaryrefslogtreecommitdiff
path: root/apt-pkg/cdrom.cc
AgeCommit message (Collapse)AuthorFilesLines
2012-04-22* apt-pkg/cdrom.cc:David Kalnischkies1-19/+2
- use Dump() to generate the configuration output
2012-03-20* apt-pkg/acquire-worker.cc:David Kalnischkies1-2/+4
- check return of write() as gcc recommends * apt-pkg/acquire.cc: - check return of write() as gcc recommends * apt-pkg/cdrom.cc: - check return of chdir() and link() as gcc recommends * apt-pkg/clean.cc: - check return of chdir() as gcc recommends * apt-pkg/contrib/netrc.cc: - check return of asprintf() as gcc recommends
2011-12-11add a testcase for FindPackages() to better validate that cdrom should work.David Kalnischkies1-8/+15
Unfortunately it's hard to do an automated integration test with cd, so we test this method in isolation which tries to find Indexes and dropping of duplications with DropRepeats()
2011-12-11* apt-pkg/cdrom.cc:David Kalnischkies1-2/+2
- support InRelease files on cdrom
2011-12-11use fileutl exists-functions instead of doing the stat'ing by handDavid Kalnischkies1-6/+5
2011-12-11strip the extension of the translation file before storing it in the listDavid Kalnischkies1-0/+1
(regression from compression rewrite; found by Steve McIntyre, thanks!)
2011-11-24use getCompressors() instead of getCompressorTypes() and use it everywhereDavid Kalnischkies1-60/+65
to replace hardcoding of compressiontypes and compressors
2011-11-23factored out the decompressor code in IndexCopy::CopyPackages() andSteve McIntyre1-1/+1
TranslationsCopy::CopyTranslations() into a single common function
2011-11-22* apt-pkg/cdrom.cc:Michael Vogt1-29/+54
- use aptconfiguration to get the supported compression types
2011-11-21apt-pkg/cdrom.cc: Accept .bz2, .xz files in addition to .gz files (Closes: ↵Julian Andres Klode1-4/+11
#649451)
2011-09-19use forward declaration in headers if possible instead of includesDavid Kalnischkies1-0/+2
2011-09-13merge with debian/experimentalDavid Kalnischkies1-22/+14
2011-09-13reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies1-2/+3
2011-08-15merged from the debian-sid branchMichael Vogt1-13/+13
2011-08-11cppcheck complains about some possible speed improvements which could beDavid Kalnischkies1-13/+13
done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
2011-07-28* apt-pkg/cdrom.{cc,h}:Michael Vogt1-9/+1
- cleanup old ABI break avoidance hacks
2011-04-16fix a bunch of cppcheck warnings/errors based on a patch byDavid Kalnischkies1-34/+54
Niels Thykier, thanks! (Closes: #622805)
2011-03-10apt-pkg/cdrom.{cc,h}: add (ugly) workaround to ensure the ABI is not broken ↵Michael Vogt1-1/+8
(also in this case its probably not needed because pkgUDevCDrom is not used outside libapt itself, still its better to be on the save side)
2011-03-10* apt-pkg/contrib/cdromutl.{cc,h}, apt-pkg/cdrom.{cc,h}:Michael Vogt1-1/+2
- deal with missing FSTAB_DIR when using libudev to discover cdrom - add experimental APT::cdrom::CdromOnly option (on by default). When this is set to false apt-cdrom will handle any removable deivce (like a usb-stick) as a "cdrom/dvd" source
2011-03-09apt-pkg/contrib/cdromutl.{cc,h}: return string for mountpath; ↵Michael Vogt1-3/+8
apt-pkg/cdrom.cc: use string
2011-03-09apt-pkg/cdrom.{cc,h}: add ScanForRemovable helperMichael Vogt1-7/+16
2011-03-04apt-pkg/contrib/cdromutl.{cc,h}: add FindMountPointForDevice helper; ↵Michael Vogt1-0/+7
apt-pkg/cdrom.cc: deal with missing FSTAB_DIR
2011-03-04apt-pkg/cdrom.{cc,h}: add udev_enumerate_add_match_sysattr to the libudev classMichael Vogt1-0/+1
2011-02-01apt-pkg/cdrom.cc: fix another hardcoded /cdromMichael Vogt1-1/+1
2011-02-01* apt-pkg/cdrom.cc, apt-pkg/init.cc, methods/cdrom.cc:Michael Vogt1-2/+2
- use /media/cdrom as default mountoint (closes: #611569)
2010-08-02* apt-pkg/cdrom.cc:Michael Vogt1-1/+1
- fix off-by-one error in DropBinaryArch
2010-07-27* apt-pkg/cdrom.cc:Julian Andres Klode1-1/+1
- Use link() instead of rename() for creating the CD database backup; otherwise there would be a short time without any database.
2010-03-18merge MultiArch-ABI. We don't support MultiArch yet (as most other tools),David Kalnischkies1-21/+13
but we support the usage of the new ABI so libapt users can start to prepare for MultiArch (Closes: #536029)
2010-03-12* cmdline/apt-get.ccDavid Kalnischkies1-1/+2
- fix memory leaks in error conditions in DoSource()
2010-02-13[BREAK] merge MultiArch-ABI. We don't support MultiArch,David Kalnischkies1-21/+13
but we support the usage of the new ABI so libapt users can start to prepare for MultiArch (Closes: #536029) MultiArch isn't ready for Primetime usage for now, but the branch has managed to be a NOP if used in SingleArch-mode so we can start to promote the use of the new MultiArchable API-extensions.
2010-01-27merge 1695..1701 from the lp:~mvo/apt/mvo branchMichael Vogt1-3/+2
2009-12-23merge Goswin Brederlow "support download of index files for different archs"David Kalnischkies1-21/+13
patch which includes the following big changes: - Declare the unused [vendor] field in sources.list as option field, e.g. deb [arch=amd64,i386 lang=en_GB have=fun] http://example.org - When fetching index files download them for all APT::Architectures (overrideable with the options field above) - Allow all architectures of APT::Architectures to be in the Cache - Add the architecture to status and progress informations - Add b= (Binary architecture) to policy This commit doesn't incude the "pin-hack" as the Group structure will take care of this (and does it already to some extend).
2009-07-23[ABI] merged the libudev-dlopen branch, this allows to passMichael Vogt1-1/+85
"apt-udev-auto" to Acquire::Cdrom::mount and the cdrom method will dynamically find/mount the cdrom device (if libhal is available)
2009-07-23methods/cdrom.cc: add AutoDetectAndMount methodMichael Vogt1-3/+2
2009-07-22methods/cdrom.cc: move the scan into the loop that waits for a CDMichael Vogt1-1/+6
2009-07-22apt-pkg/cdrom.cc: make cdrom.Mounted property reliableMichael Vogt1-1/+2
2009-07-21The 'not dead yet' releaseMichael Vogt1-11/+7
* add hook for MarkInstall and MarkDelete (closes: #470035) * add the various foldmarkers in apt-pkg & cmdline (no code change) * versions with a pin of -1 shouldn't be a candidate (Closes: #355237) * prefer mmap as memory allocator in MMap instead of a static char array which can (at least in theory) grow dynamic * eliminate (hopefully all) segfaults in pkgcachegen.cc and mmap.cc which can arise if cache doesn't fit into the mmap (Closes: #535218) * display warnings instead of errors if the parts dirs doesn't exist * honor the dpkg hold state in new Marker hooks (closes: #64141)
2009-07-09move libudev based code into libapt cdrom.cc classMichael Vogt1-1/+80
2009-06-30add the various foldmarkers in apt-pkg & cmdline (no code change)David Kalnischkies1-11/+7
2008-10-28apt-pkg/cdrom.cc: add missing i18n stringMichael Vogt1-1/+1
2007-12-27* Fix compilation warnings in apt-pkg/cdrom.cc andOtavio Salvador1-2/+2
apt-pkg/contrib/configuration.cc.
2007-10-29* Umount CD-ROM when calling apt-cdrom ident, except when called withOtavio Salvador1-0/+7
-m, closes: #448521.
2007-10-26* Applied patch from Frans Pop <elendil@planet.nl> to fix a trailingOtavio Salvador1-2/+2
space after cd label, closes: #448187.
2007-10-02 - apt-pkg/cdrom.cc: '%lu' expects 'long unsigned int', but argumentOtavio Salvador1-2/+2
has type 'size_t';
2007-08-03* make apt -Wall cleanMichael Vogt1-2/+2
2007-06-08* Removed the more leftover #pragma interface/implementationMichael Vogt1-3/+0
closes: #306937 (thanks to Andreas Henriksson for the patch)
2007-06-08* remove all the remaining #pragma implementationMichael Vogt1-3/+0
2007-06-08* add "purge" commandline argument, closes: #133421)Michael Vogt1-0/+1
(thanks to Julien Danjou for the patch) * fix FTBFS with gcc 4.3, closes: #417090 (thanks to Martin Michlmayr for the patch) * add --dsc-only option, thanks to K. Richard Pixley
2007-06-08* fix FTBFS with gcc 4.3, closes: #417090Michael Vogt1-0/+1
(thanks to Martin Michlmayr for the patch)
2007-06-06* merged the debian/experimental changes backMichael Vogt1-9/+38
into the debian/sid branch * merged from Christian Perrier: * mr.po: New Marathi translation Closes: #416806 * zh_CN.po: Updated by Eric Pareja Closes: #416822 * tl.po: Updated by Eric Pareja Closes: #416638 * gl.po: Updated by Jacobo Tarrio * da.po: Updated by Claus Hindsgaul * fr.po: Remove a non-breakable space for usability * ru.po: Updated Russian translation. Closes: #405476 * *.po: Unfuzzy after upstream typo corrections * buildlib/archtable: - added support for sh3/sh4 (closes: #424870) - added support for m32r (closes: #394096) * buildlib/systemtable: - added support for lpia * configure.in: - check systemtable for architecture mapping too * Package that contains tall the new features * Removed all #pragma interface/implementation * Branch that contains tall the new features: * translated package descriptions * task install support * automatic dependency removal (thanks to Daniel Burrows) * merged support for the new dpkg "Breaks" field (thanks to Ian Jackson) * handle network failures more gracefully on "update" * support for unattended-upgrades (via unattended-upgrades package) * added apt-transport-https method * merged "install-recommends" branch (ABI break): - new "--install-recommends" - install new recommends on "upgrade" if --install-recommends is given - new "--fix-policy" option to install all packages with unmet important dependencies (usefull with --install-recommends to see what not-installed recommends are on the system) - fix of recommended packages display (only show CandidateVersion fix or-group handling) * merged "install-task" branch (use with "apt-get install taskname^") * Applied patch from Daniel Schepler to make apt bin-NMU able. * eu.po: Updated * fix apt-get dist-upgrade * fix warning if no /var/lib/apt/extended_states is present * don't download Translations for deb-src sources.list lines * apt-pkg/tagfile.cc: - support not-mmapable files again * added support for i18n of the package descriptions * added support for aptitude like auto-install tracking (a HUGE HUGE thanks to Daniel Burrows who made this possible) * synced with the http://people.debian.org/~mvo/bzr/apt/debian-sid branch * build from http://people.debian.org/~mvo/bzr/apt/debian-experimental * apt-pkg/depcache.cc: - added Debug::pkgDepCache::AutoInstall (thanks to infinity) * apt-pkg/acquire-item.cc: - fix missing chmod() in the new aquire code (thanks to Bastian Blank, Closes: #367425) * merged from http://www.perrier.eu.org/debian/packages/d-i/level4/apt-main: * sk.po: Completed to 512t * eu.po: Completed to 512t * fr.po: Completed to 512t * sv.po: Completed to 512t * Update all PO and the POT. Gives 506t6f for formerly complete translations * Fix a incorrect example in the man-page (closes: #282918)