Juan RP
79d3f446fe
xbps_fetch_file: return proper error if connection failed,
...
fix SSP problem with fetchflags!
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091107052101-ao6nqq8xrzb06tvr
2009-11-07 06:21:01 +01:00
Juan RP
adbd3d727c
Added support for shell (and csh as well) patterns for required
...
dependencies, as specified in blueprint "improved-version-matching".
It's possible now to require greater, greater or equal than,
less, less or equal than, and equal pkg versions, as well as using
'{}' and '[^!]' csh patterns in dependencies.
Code lifted from FreeBSD, thanks! :-)
Change XBPS_RELVER to 20091107 to match latest additions.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091107035620-3051wcwrirqn2g14
2009-11-07 04:56:20 +01:00
Juan RP
748cc9c6b1
Improve xbps_fetch_file() and friends, one more time by Daft Punk.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091031140925-rjlkhq0v6fvmtawo
2009-10-31 15:09:25 +01:00
Juan RP
10e76c6420
xbps_fetch_file: erm fix previous, FETH_UNCHANGED is the correct one.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091031105541-8v2qt83jxazsxean
2009-10-31 11:55:41 +01:00
Juan RP
a9b7ffa94a
xbps_fetch_file(): check for local/remote mtime, add some more
...
checks for errors, add some printfs.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091031104055-fy64xd6g6m938dxh
2009-10-31 11:40:55 +01:00
Juan RP
10f2bef7cb
Bah, fix these stupid make targets.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091030163209-td7vxbq5vkxva5zc
2009-10-30 17:32:09 +01:00
Juan RP
5b6724b550
Fix up some issues for building shared/static bins.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091030162345-2so2ejfvvqr29s7v
2009-10-30 17:23:45 +01:00
Juan RP
4e83deb0cc
libxbps: avoid fetchStat() and use only fetchXGet().
...
Some HTTP servers (observerd with googlecode.com), issue a 404
if the headers are checked before issuing a GET transfer.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091030162044-ng8o944bajwdudg8
2009-10-30 17:20:44 +01:00
Juan RP
4aeea194e3
lib/Makefile: don't forget to install the static lib.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091030112231-h1onlwabxst3am0h
2009-10-30 12:22:31 +01:00
Juan RP
3905c2106c
Properly build shared/static libxbps and utils.
...
xbps-fetch: added -v flag to see verbose messages in libfetch.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091030111726-axf9paz2k01ntqzz
2009-10-30 12:17:26 +01:00
Juan RP
79f9f34775
libxbps: added xbps_fetch_error_string(), that returns libfetch
...
fetchLastErrString.
Hook xbps-fetch to the tree and use the new function to print errors.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091030021303-6wu9sri5o8kgvfwl
2009-10-30 03:13:03 +01:00
Juan RP
0024221279
lib/depends.c: minor performance change.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091028021652-ns74gpr86ohfok9a
2009-10-28 03:16:52 +01:00
Juan RP
dc258f4e20
Use xbps_get_root() directly where appropiate.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091027111547-tb38qz51ejakn3jc
2009-10-27 12:15:47 +01:00
Juan RP
ac897c8383
libxbps: move remote repo pkg-index sync code into its own file.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091027034000-rsg33sjonqsu0d5t
2009-10-27 04:40:00 +01:00
Juan RP
7aebea684b
Implemented support for working with remote repositories.
...
libfetch from NetBSD's pkgsrc has been imported into lib/fetch, but
the objects are embedded into libxbps. Only a public function to fetch
files has been implemented: xbps_fetch_file().
The library now is built with -fvisibility=hidden by default, and
exported symbols are the ones that use the SYMEXPORT macro.
The code works well enough, but will need many more cleanups.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091027004600-0lq9aao67lisbzxv
2009-10-27 01:46:00 +01:00
Juan RP
6a855c0272
xbps_find_orphan_packages: report return value as errno in an error path.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091023120316-om71k2rnmk4ruzh1
2009-10-23 14:03:16 +02:00
Juan RP
236b86ae50
xbps_check_is_installed_pkg: fix a leak in error paths reported by valgrind.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091023091157-h3tlqw2nz67m72ep
2009-10-23 11:11:57 +02:00
Juan RP
b2197be315
Do not use private sha256.h header file in the public exported
...
API header file (xbps_api.h).
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091022124921-nvy2x07ibxjqtt50
2009-10-22 14:49:21 +02:00
Juan RP
03c7b26874
Fix typo in previous.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091021162718-n24n1yf7144rmqrz
2009-10-21 18:27:18 +02:00
Juan RP
f99a154d7f
Improved unpacking package files, fixing bugs in configuration file
...
handling.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091021161617-c9d2jyhxlwlid4e6
2009-10-21 18:16:17 +02:00
Juan RP
c72f3a1a3c
Remove xbps-src and its associated code. This is required for the
...
upcoming 0.3 version.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091018091539-4f7ynscyvsqt3st4
2009-10-18 11:15:39 +02:00
Juan RP
ba1c8971a5
Fix "autoupdate" target when no new packages are available.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091017041820-tj61sfbw5nz50ioh
2009-10-17 06:18:20 +02:00
Juan RP
cb1f10d415
xbps-bin: don't initialize repolist data unless we want to update.
...
xbps_find_new_pkg: always initialize repolist data.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091016150435-wpjfd453hpwr5k89
2009-10-16 17:04:35 +02:00
Juan RP
a60fde85a5
xbps_find_new_packages(): do not treat missing packages in repo,
...
or packages with less than or equal version installed as errors.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091016134654-14a5x7b6ra9a632s
2009-10-16 15:46:54 +02:00
Juan RP
e1f2a8b7bd
xbps-bin: multiple fixes to update packages.
...
* Fix 'autoupdate' target to look for new packages in ALL repos, not
just the first one that has the package.
* Fix 'update' target to work correctly.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091016133157-asvkv5jb6i9q2ibe
2009-10-16 15:31:57 +02:00
Juan RP
d771383442
xbps_requiredby_pkg_add: ignore existing entries.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091016113656-386rsnozjjlz500k
2009-10-16 13:36:56 +02:00
Juan RP
cf04a48a1d
Remove support for "keep_dirs", it won't be used.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091015142937-sbf72osvlulzq7d6
2009-10-15 16:29:37 +02:00
Juan RP
dd2baebdec
Fix bug #447944 : xbps build failure (gcc 4.4.1)
...
unsigned int and size_t do not match in size in x86_64, so use
unsigned int in functions expecting this type.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091010141337-vfoiay5nx8edl0ux
2009-10-10 16:13:37 +02:00
Juan RP
53de9e531b
lib/unpack.c: fix a NULL pointer deref when checking configuration
...
files exists or not while unpacking.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091010064437-9121w162sy8ilpim
2009-10-10 08:44:37 +02:00
Juan RP
1afb358221
Fix bug #443436 : endless loop if indirect dep missing in repo.
...
Make xbps_find_deps_in_pkg() return ENOENT when missing deps are found.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091005195748-nhhsgldgg3hwfcz7
2009-10-05 21:57:48 +02:00
Juan RP
53cb406513
Pass another argument to the REMOVE script to make the script
...
aware of package being upgraded or removed. Will be used later to
restart services while upgrading packages.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091002113833-x7nsur0g4ehyr5zq
2009-10-02 13:38:33 +02:00
Juan RP
c56e2931db
Fix bug #439457 "Unpacking a package ignores correct perms"
...
Simplify logic and fix the mistake of pass-by-value vs pass-by-ref.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090930162921-wfx9ze2v7rjrpmza
2009-09-30 18:29:21 +02:00
Juan RP
3df22522b9
xbps_configure_pkg: pass correct version to the post install script.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090827053150-j6wqvnjuhjs09r5t
2009-08-27 07:31:50 +02:00
Juan RP
10bd54adb4
Check if pkg INSTALL/REMOVE metadata scripts are executable rather than
...
readable, to ensure scripts can be executed.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090825040559-nkkzvaf59r10asj7
2009-08-25 06:05:59 +02:00
Juan RP
fd5afa2efb
xbps_file_chdir_exec: check if /bin/sh is executable rather than readable.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090825040429-7fbwxo2fao20w28n
2009-08-25 06:04:29 +02:00
Juan RP
10531d7d45
Fix xbps_configure_pkg() reporting old version when upgrading packages.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090825040302-azurxpyalot07j81
2009-08-25 06:03:02 +02:00
Juan RP
14c9886cfc
When finding package orphans, only report those with "installed" state.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090822054123-1bud3ldgin5opbhc
2009-08-22 07:41:23 +02:00
Juan RP
ecfa25833f
Improve marginally configuring/purging all packages by looking at its
...
state in the object dictionary rather than opening and externalizing
the dictionary of every package.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090821093126-0xw980x0pqtq59q2
2009-08-21 11:31:26 +02:00
Juan RP
4aac305105
Add some PHONYs to the install target in Makefiles.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090821091758-6am9fbkvy9doooef
2009-08-21 11:17:58 +02:00
Juan RP
62b514f6e1
lib/unpack.c: fix the logic of an inverted conditional.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090818215919-xv54d9a2vobsizlr
2009-08-18 23:59:19 +02:00
Juan RP
d7ff3ea85a
xbps_configure_pkg: chdir(rootdir) before checking for INSTALL script!
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090818213947-kl9f5gfbcq8vwvvt
2009-08-18 23:39:47 +02:00
Juan RP
5a2348e502
xbps_unpack_binary_pkg: switch back to fsync(), to be safe.
...
Move the set_pkg_state call just after the fsync call, otherwise
strange things can ocurr sometimes.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090818205029-b01fqdf5tw4hnzgc
2009-08-18 22:50:29 +02:00
juan
3f3b6d00dd
Initial import of xbps with code as August '09.
...
--HG--
extra : convert_revision : juan%40xbps-20090817170720-amxxac4a2e8bza1j
2009-08-17 19:07:20 +02:00