Commit Graph

71 Commits

Author SHA1 Message Date
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