summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/APT.py
Commit message (Collapse)AuthorAgeFilesLines
* Use new python-apt API and fall back to the old API when new API isn't availableJeroen Dekkers2011-11-231-23/+52
|
* Merge branch 'apk' of https://github.com/fabaff/bcfg2Sol Jerome2011-10-111-2/+2
|\
| * Minor changesFabian Affolter2011-10-111-2/+2
| |
* | APT: Add filter for deprecated API accessHolger Weiß2011-09-181-0/+1
|/ | | | This access is triggered by running "bcfg2 -r Packages".
* APT: Add type='ignore' support (patch from tie on IRC)Sol Jerome2011-08-171-2/+11
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Client Tools: Add PY3K compatibilitySol Jerome2011-06-151-1/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* APT: Add two filters for deprecated API accessesHolger Weiß2011-06-141-0/+2
| | | | | These accesses are triggered by <Package> configuration entries which don't have the "version" attribute set to "auto" or "any".
* APT: Catch apt-python initialization failures (#1001)Sol Jerome2011-04-061-1/+5
| | | | | | | This still needs to be fixed in apt-python, but we can at least give the user a smarter failure and disable the client tool properly here. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* APT/YUMng: Remove stray punctuationSol Jerome2011-03-011-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* client tools: Add verification failure suggestion (Resolves #724)Sol Jerome2011-01-221-0/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* APT: Enforce appearance of /usr/sbin and /sbin in PATH (Resolves Ticket #968)Narayan Desai2011-01-221-1/+5
|
* APT: Enable debugging output from apt-getRichard Connon2011-01-111-8/+9
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* POSIX: Remove client-side support for old POSIX typesSol Jerome2010-10-181-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* APT: Install missing configuration files (Fixes Ticket #622)Sol Jerome2010-10-121-1/+3
| | | | | | | | | We used to not do this because the user may have removed the configuration file in question on purpose. However, now that we have support for nonexistent entries, we can afford to add this option without any consequences. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Add the ability to specify important entries via info/info.xmlSol Jerome2010-06-221-1/+2
| | | | | | | | | | | | We currently have 'important' entries specified only inside the code for various client tools. This provides no room for growing that list outside of adding things to the code itself. With this change, users can now specify important entries via an additional attribute in their info.xml files. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5957 ce84e21b-d406-0410-9b95-82705330c041
* APT: Add more filters for deprecated apt API accesses (Patch from Kioob)Sol Jerome2010-06-211-0/+2
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5955 ce84e21b-d406-0410-9b95-82705330c041
* APT: Fix nonexistent Path verification failures (Reported by Remi Broemeling)Sol Jerome2010-06-101-0/+6
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5919 ce84e21b-d406-0410-9b95-82705330c041
* Updated files to match PEP 257Fabian Affolter2010-06-071-6/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5897 ce84e21b-d406-0410-9b95-82705330c041
* APT: Add sources.list* to __important__ listSol Jerome2010-04-131-9/+10
| | | | | | | | | | | | Frame: Fix bug in handling of __important__ entries This should allow people the easier option of configuring their APT sources in the /etc/sources.list.d dirctory instead of just relying on sources.list to be correct. This commit also fixes a bug where the client was relying on a 'ConfigFile' entry tag even in the case where a Path entry was present. Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
* APT: produce reasonable interactive messages for version=auto entriesNarayan Desai2010-04-081-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5811 ce84e21b-d406-0410-9b95-82705330c041
* APT: Add support for using non-standard tool paths (Resolves Ticket #773Sol Jerome2010-03-131-9/+25
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5766 ce84e21b-d406-0410-9b95-82705330c041
* APT: add support for new debsums (Patch from Nicolas Dandrimont)Narayan Desai2010-03-131-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5761 ce84e21b-d406-0410-9b95-82705330c041
* APT: suppress apt driver api warningsNarayan Desai2009-11-051-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5546 ce84e21b-d406-0410-9b95-82705330c041
* Client tools: Remove unnecessary extra whitespaceSol Jerome2009-08-161-5/+5
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5408 ce84e21b-d406-0410-9b95-82705330c041
* APT: add backwards compatibility for python-apt 0.6Narayan Desai2009-07-211-2/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5375 ce84e21b-d406-0410-9b95-82705330c041
* APT/Client: Suppress known warningsSol Jerome2009-06-261-0/+4
| | | | | | | | | APT: Suppress APT api warning Client/Tools/__init__.py: Suppress popen2 deprecation warning Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5301 ce84e21b-d406-0410-9b95-82705330c041
* APT: Force cache reload to get data from source updatesNarayan Desai2009-06-141-5/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5278 ce84e21b-d406-0410-9b95-82705330c041
* APT: fix cache invalidationNarayan Desai2009-06-141-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5276 ce84e21b-d406-0410-9b95-82705330c041
* APT.Remove: Split up package names properlySol Jerome2009-05-221-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5252 ce84e21b-d406-0410-9b95-82705330c041
* Remove unused imports for pylintSol Jerome2009-04-171-1/+1
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5168 ce84e21b-d406-0410-9b95-82705330c041
* Revert dict accesses in APT toolSol Jerome2009-01-131-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5022 ce84e21b-d406-0410-9b95-82705330c041
* Add more verbose apt cache mismatch errorsNarayan Desai2009-01-131-2/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5021 ce84e21b-d406-0410-9b95-82705330c041
* Fall back to auto behavior for APT version=any installation (Resolves Ticket ↵Narayan Desai2009-01-131-3/+1
| | | | | | #631) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5018 ce84e21b-d406-0410-9b95-82705330c041
* Improve error message for APT.py when version=any (Resolves Ticket #631)Narayan Desai2009-01-131-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5017 ce84e21b-d406-0410-9b95-82705330c041
* Update dictionary accesses to work with Python 3.0Sol Jerome2008-12-221-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4999 ce84e21b-d406-0410-9b95-82705330c041
* Merge branch 'tools'Narayan Desai2008-12-101-0/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4992 ce84e21b-d406-0410-9b95-82705330c041
* pylint fixes for client codeNarayan Desai2008-12-081-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4991 ce84e21b-d406-0410-9b95-82705330c041
* Implement version=any for Apt driverNarayan Desai2008-11-251-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4985 ce84e21b-d406-0410-9b95-82705330c041
* Fix false verification failureNarayan Desai2008-11-251-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4984 ce84e21b-d406-0410-9b95-82705330c041
* New APT driver (git-svn sent the last change astray)Narayan Desai2008-11-221-82/+120
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4981 ce84e21b-d406-0410-9b95-82705330c041
* Fix apt purge calls (Fix PDS's issue reported on IRC)Narayan Desai2008-10-281-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4954 ce84e21b-d406-0410-9b95-82705330c041
* Pylint formatting fixes for client tool driversSol Jerome2008-09-271-3/+10
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4923 ce84e21b-d406-0410-9b95-82705330c041
* Make APT use purge to remove extra services.Sol Jerome2008-09-091-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4909 ce84e21b-d406-0410-9b95-82705330c041
* Fix for ticket #586, seem to happen only with recent version of debsumsSteve Tousignant2008-09-031-0/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4901 ce84e21b-d406-0410-9b95-82705330c041
* Fix apt pluginNarayan Desai2008-08-071-2/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4872 ce84e21b-d406-0410-9b95-82705330c041
* remove extra call to self.RefreshPackages() (Resolves Ticket #591)Narayan Desai2008-08-061-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4857 ce84e21b-d406-0410-9b95-82705330c041
* Change to use correct syntax for DPkg options, as gleaned from a google Daniel Joseph Barnhart Clark2008-06-221-1/+1
| | | | | | | | search. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4705 ce84e21b-d406-0410-9b95-82705330c041
* add more non-interactive options for APTNarayan Desai2008-06-221-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4704 ce84e21b-d406-0410-9b95-82705330c041
* Fix error in failing md5sum pathNarayan Desai2008-05-201-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4613 ce84e21b-d406-0410-9b95-82705330c041
* Remove validation states from Tool instances (in preparation for ↵Narayan Desai2008-03-171-6/+8
| | | | | | DecisionList stuff) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4423 ce84e21b-d406-0410-9b95-82705330c041