aboutsummaryrefslogtreecommitdiffstats
path: root/src/package.c
AgeCommit message (Collapse)AuthorFilesLines
2016-03-09update copyright dateJason Woodward1-1/+1
2015-01-13update copyright dateJason Woodward1-1/+1
2014-04-05copyright date bumpJason Woodward1-1/+1
2014-04-05round after unit conversionJason Woodward1-4/+4
2014-04-03support fractional installed size from /var/log/packages filesJason Woodward1-2/+4
2014-02-13tweak search to return exact name matches in case of regex charactersJason Woodward1-0/+4
2013-11-23Revert "exit on failure to compile regex"Jason Woodward1-1/+1
This reverts commit 5cb4555dc0b87217d782cd6f55aab128992189d4. Breaks libslapt users
2013-09-02exit on failure to compile regexJason Woodward1-1/+1
2012-08-02use SLAPT_CHECKSUMS_NOT_VERIFIED instead of SLAPT_CHECKSUMS_NOT_VERIFIED_UNKNOWNJason Woodward1-1/+1
2012-08-02included option --allow-unauthenticatedLuiz Ramos1-0/+27
This option permits installation of repositories whose signatures were not verified for some "acceptable" reason
2012-08-02show some additional information when signature is not verifiedLuiz Ramos1-2/+2
2012-06-26remove __inline attributes for various functions as they clash with c99Jason Woodward1-1/+1
2012-05-20Update pasture URL fixup for no sub directory packagesJason Woodward1-1/+1
2012-04-18updated zlib usage to fix "expected 'gzFile' but argument is of type 'struct ↵Jason Woodward1-1/+1
gzFile_s **'"
2012-01-08[HACK] prefer our architecture in x86/x86_64 multilib package comparisonJason Woodward1-1/+14
2012-01-08updated copyright date for 2012Jason Woodward1-1/+1
2011-10-08fix logic inversion checking for null packageJason Woodward1-1/+1
2011-10-08Updated required_by pattern to match required declarationsJason Woodward1-2/+2
Make sure to match both the beginning and end of lines along with the existing middle.
2011-10-08Do not return 1 from slapt_get_pkg_dependencies if no dependency informationJason Woodward1-1/+1
This should return 0 as the contract/comment says.
2011-10-07fixed reverse dep lookup to make sure the match is exactJason Woodward1-13/+18
Previously the reverse dependency lookup found dbus-glib for glib. Tightened up the regex, and compared the actual names after the fuzzy match to make sure it was the right package.
2011-09-12Fix resource leaks on error pathsIgor Murzov1-0/+2
Spotted by cppcheck: [src/package.c:2371]: (error) Resource leak: dir [src/package.c:2451]: (error) Resource leak: dir
2011-06-26Updated regex for reading /var/log/packages compressed and uncompressed sizesJason Woodward1-0/+8
Larger packages use 'M' instead of 'K' for size designation... account for this.
2011-01-01bumepd copyright date to 2011Jason Woodward1-1/+1
2010-09-27api cleanup, typedef'd old structsJason Woodward1-69/+69
2010-09-12comment on why we have a seemingly needless sortJason Woodward1-0/+3
2010-06-09updated slapt_is_required_byJason Woodward1-6/+71
make slapt_is_required_by properly account for alternative/conditional dependencies as well as be aware of what is to be installed and removed.
2010-06-09Updated API, generalizing several types into slapt_list_tJason Woodward1-120/+41
Replaced slapt_pkg_action_args_t, struct slapt_exclude_list, and struct slapt_suggests with slapt_list_t, a generic string list type. Added support functions slapt_parse_delimited_list, slapt_init_list, slapt_add_list_item, slapt_remove_list_item, and slapt_free_list in support of slapt_list_t. Removed now unnecessary slapt_init_exclude_list, slapt_add_exclude, slapt_remove_exclude, slapt_free_exclude_list, slapt_init_pkg_action_args, slapt_add_pkg_action_args, and slapt_free_pkg_action_args. Added convenience function slapt_parse_delimited_list that can generate a slapt_list_t from the exclude list, suggestions, dependencies, and conflicts. This greatly simplified the exclude parsing and dependency parsing.
2010-01-11removed unused location_regex from slapt_get_installed_pkgs()0.10.2cJason Woodward1-6/+1
2010-01-10updated copyright header to include 2010Jason Woodward1-1/+1
2010-01-10ignore the location for installed packages as they do not have any real ↵Jason Woodward1-5/+1
meaning and end up confusing the user.
2009-09-10free pkg_log_dirname as soon as possibleJason Woodward1-1/+2
2009-09-09added slapt_get_pkg_filelist() from Anders F. BjorklundJason Woodward1-18/+166
2009-09-01normalize search routine when doing package lookups by details instead of ↵Jason Woodward1-1/+1
just name and version. This fixes a bug in gslapt that causes the package lookup to fail for two similar packages.
2009-08-11free priority string and priority regex after parsing.Jason Woodward1-1/+7
2009-06-25updated conflicts and suggests parsing to fix certain PACKAGES.TXT formattingJason Woodward1-8/+10
2009-04-29updated MD5 parsing to accept new slackware MD5SUM metadata in ↵Jason Woodward1-3/+6
/var/log/packages entries
2009-04-29disabled file size check since slack PACKAGES.TXT sizes are no longer ↵Jason Woodward1-2/+10
accurate byte counts
2009-04-28added support for the txz package extensionJason Woodward1-0/+1
2009-01-04added copyright year 2009Jason Woodward1-1/+1
2008-12-17updated pt_BR translation from Sergio Surkamp. moved slapt_pkg_version_parts ↵Jason Woodward1-0/+5
out of public header
2008-12-14fixed an initialization errror in slapt_is_required_by() that caused a ↵0.10.1Jason Woodward1-8/+9
segfault when removing with --no-deps. if no package sources are defined with a priority, disable use of priorities when dealing with /patches. This prevents the previous default slapt-get behavior from changing and causing confusion. With priorities, /patches is always assigned +1 above the package sources priority. So if no priorities were in use then anything found in any sources /patches always trumped anything else. This is probably the most correct behavior but it is still unexpected for existing users. To get the correct behavior, assign a priority to one or more sources.
2008-12-14formatting updateJason Woodward1-2/+3
2008-12-08assign to installed_dep when looking at obsolete packages depsJason Woodward1-3/+4
2008-12-07logic error when checking if dep is installed when finding obsolete packagesJason Woodward1-1/+1
2008-12-06validate against installed package list when creating a list of obsolete ↵Jason Woodward1-1/+2
packages and their dependencies so as to not try and remove uninstalled packages
2008-11-25 * (libslapt) added slapt_write_rc_config (incorporating from gslapt)Jason Woodward1-34/+74
* (libslapt) added parsing of disabled sources (instead of ignoring what gslapt creates). * test updates * Added source priority support based on patch submitted by Ken Milmore
2008-11-23Added support for ikg extension (requested by Miguel Reynosso)Jason Woodward1-0/+1
2008-09-21Fix for MD5 string length (Thanks to Boris Popov)Jason Woodward1-1/+1
2008-03-09updating dates to include 2008Jason Woodward1-1/+1
2007-10-04compile time definition for SLACKWARE_EXTRA_TESTING_PASTURE_WORKAROUND (see ↵Jason Woodward1-0/+2
package.c for comment)