1
0
Fork 0
forked from mirrors/openup
Commit graph

137 commits

Author SHA1 Message Date
Antoine Jacoutot
6dd1490caa Finish vuxml implementation for pkg.
Next step will be binpatches, but it is now time to extensively test this:
'openup -c'

I tried to make the code as simple as possible so that everyone does
not wonder how we parse the xml.
2013-08-27 15:42:03 +02:00
Antoine Jacoutot
7dc9cf031e Simplify and fix regex/parsing to cope with multi-packages. 2013-08-27 15:29:48 +02:00
Antoine Jacoutot
180f052be3 Better regex to match merging packages. 2013-08-27 13:39:38 +02:00
Antoine Jacoutot
b1ccd4ec66 More TODO. No VERSION bump since it's not finished yet. 2013-08-27 13:03:22 +02:00
Antoine Jacoutot
9efbb1531a Remove support for firmwares -- it's pretty useless.
Rework usage and add -c (check/cron option).
Initial implementation of the vuxml parsing - still WIP but seems to work ok (just wear glasses if you want to read the corresponding function)... regex foo!
2013-08-27 13:01:01 +02:00
Antoine Jacoutot
6e63ce4179 Add an outdated_pkg() function -- not used nor finished yet. 2013-08-26 11:40:50 +02:00
Antoine Jacoutot
4e40824649 Minor tweaks. 2013-08-26 11:20:33 +02:00
Antoine Jacoutot
b64e67315a Bump VERSION. 2013-08-20 11:23:59 +02:00
Antoine Jacoutot
6c8c11bfb3 Sanitize variables name.
Make this tool standalone and not rely on externaly set PKG_PATH
or installpath.
2013-08-20 11:22:11 +02:00
Antoine Jacoutot
b27db2f296 Rename some functions. 2013-08-14 10:38:03 +02:00
Antoine Jacoutot
94ed4cae6c Extend usage and doc. 2013-08-14 10:36:28 +02:00
Antoine Jacoutot
806910046d Better regex. 2013-08-13 15:34:25 +02:00
Antoine Jacoutot
6f43e19082 Fix typo.
Output the complete steps taken to update the script when running
in dry run mode.
2013-08-13 14:35:12 +02:00
Antoine Jacoutot
f1c7ac9576 Abort immediately if binpatch from an older release is installed. 2013-08-13 14:15:45 +02:00
Antoine Jacoutot
20d2d91f3a check for pkg.conf installpath and/or PKG_PATH 2013-08-13 14:02:53 +02:00
Antoine Jacoutot
331b94ef66 Clearer output. 2013-08-13 09:39:02 +02:00
Antoine Jacoutot
2e23fd1ea2 Missing space. 2013-08-13 09:31:21 +02:00
Antoine Jacoutot
76b294376e More TODO. 2013-08-12 14:56:53 +02:00
Antoine Jacoutot
451145168b Fix error outputs. 2013-08-12 14:55:27 +02:00
Antoine Jacoutot
25cd4cb703 Add TODO. 2013-08-09 11:50:54 +02:00
Antoine Jacoutot
4a37e8366f Add a failsafe, people are stupid. 2013-08-09 11:49:11 +02:00
Antoine Jacoutot
0b64f2e86f Finalize auto-update.
Bump version.
2013-08-09 11:44:30 +02:00
Antoine Jacoutot
66c83d3b34 Add printf(1) functions. 2013-08-09 11:26:55 +02:00
Antoine Jacoutot
954e05ae4f Put all binpatches on one line. 2013-08-09 11:23:08 +02:00
Antoine Jacoutot
3266260048 Explicitely notify that we are running in dry run mode. 2013-08-09 11:17:04 +02:00
Antoine Jacoutot
01dde390fc Use SSL fingerprint to check the certificate.
Move generic rm(1) call in trap.
Run a wildcard rm(1) at the end of the script.
Cope with multiple certificates in one PEM file.
2013-08-09 10:37:43 +02:00
Antoine Jacoutot
c02d1d5463 Run $_CMD under eval, so that redirection is properly handled. 2013-08-09 09:31:58 +02:00
Antoine Jacoutot
59f4095432 More output. 2013-08-08 11:17:00 +02:00
Antoine Jacoutot
47bd274ab7 Always display the command we are about to run.
Implement trap.
2013-08-08 11:11:18 +02:00
Antoine Jacoutot
7f59ecbcef Fix runtime option parsing. 2013-08-08 10:54:59 +02:00
Antoine Jacoutot
824106a288 Move some stuffs around: we want all sanity checks to run first before creating any temp files or anything.
Simplify some stuffs and rename a temp file.
2013-08-07 17:18:55 +02:00
Antoine Jacoutot
2ee5d0e3d8 Move variable assignment at the top. 2013-08-06 10:44:40 +02:00
Antoine Jacoutot
19af198490 Factorize TMPDIR. 2013-08-06 10:43:06 +02:00
Antoine Jacoutot
038da756dd Redo the way we do dry runs to output the command that would have been run.
Simplify some stuffs while here.
Bump version.
2013-08-06 10:27:57 +02:00
Antoine Jacoutot
782f8fb411 OPENUP_URL is now valid.
Fix the check for the minimum supported release.
Reverse logic for DRYRUN mode, we don't want to claim to modify anything
when we actually don't.
2013-08-06 10:03:36 +02:00
Antoine Jacoutot
657f87a7db add copyright year 2013-08-06 09:35:21 +02:00
Antoine Jacoutot
2c9ebbdf92 Initial openup import. DO NOT USE YET! 2013-08-06 09:30:13 +02:00