summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* changelog: Note Replaces/Conflicts changesPatrick McDermott2019-04-171-0/+1
|
* opkg-lede: Drop conflict that is a subset of anotherPatrick McDermott2019-04-171-2/+1
|
* opkg-lede: Drop ReplacesPatrick McDermott2019-04-171-1/+0
|
* changelog: Add 0+git20190131.d4ba162-6 entryPatrick McDermott2019-04-171-0/+6
|
* opkg-lede: Update files listPatrick McDermott2019-04-171-1/+2
|
* opkg-key: RemovePatrick McDermott2019-04-171-56/+0
|
* build: Link /usr/sbin/opkg-key to /usr/bin/opkg-certPatrick McDermott2019-04-171-0/+2
|
* opkg-cert: Accept gunzip path from environmentPatrick McDermott2019-04-161-2/+2
|
* build: Install opkg-certPatrick McDermott2019-04-161-2/+1
|
* opkg-cert: AddPatrick McDermott2019-04-161-0/+329
|
* changelog: Release opkg-lede 0+git20190131.d4ba162-5Patrick McDermott2019-04-061-0/+15
|
* opkg-lede: Essential: yesPatrick McDermott2019-04-061-0/+1
|
* opkg: Use Conflicts instead of BreaksPatrick McDermott2019-04-061-2/+2
|
* opkg-lede.pkg/files: UpdatePatrick McDermott2019-04-061-3/+3
|
* opkg-lede: Replace and break original opkg packagesPatrick McDermott2019-04-061-0/+2
|
* opkg: Un-u-a executablesPatrick McDermott2019-04-062-11/+3
|
* Revert "build: Make /usr/bin/opkg link"Patrick McDermott2019-04-061-3/+0
| | | | | | This reverts commit 0647ef7db57768316dc89e1e67c6fde14b35a738. This won't work well with u-a on removals.
* build: Make /usr/bin/opkg linkPatrick McDermott2019-04-061-0/+3
|
* build: Add " for ProteanOS" to version stringPatrick McDermott2019-04-061-1/+2
|
* patches, build: Don't add list files suffixPatrick McDermott2019-04-062-64/+0
| | | | This should be done in opkg.conf instead.
* control: B-D on patchPatrick McDermott2019-04-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Quoth ob-applypatches: ob-applypatches: Applying patch "0001-cli-Set-default-conf-file-path-in-build-system.patch"... patching file CMakeLists.txt patching file src/opkg-cl.c ob-applypatches: Applying patch "0002-build-Allow-overriding-opkg-state-dir-prefix.patch"... patching file CMakeLists.txt ob-applypatches: Applying patch "0003-cli-Optionally-enforce-argument-to-upgrade-command.patch"... patching file CMakeLists.txt patching file libopkg/opkg_cmd.c patching file src/opkg-cl.c ob-applypatches: Applying patch "0004-libopkg-Fix-segfault-on-trailing-comma-in-deps.patch"... patching file libopkg/pkg_depends.c ob-applypatches: Applying patch "0005-libopkg-Detect-gzipped-pkg-lists-by-magic-number.patch"... patching file libbb/gzip.h patching file libopkg/pkg_hash.c Possibly reversed hunk 1 at 761 Hunk 1 FAILED 99/99. { pkg_t *pkg; FILE *fp; + char magic[2]; + int is_gzip = 0; char *buf; const size_t len = 4096; int ret = 0; struct gzip_handle zh; - if (src && src->gzip) { - fp = gzip_fdopen(&zh, file_name); - } else { - fp = fopen(file_name, "r"); - } - + fp = fopen(file_name, "r"); if (fp == NULL) { opkg_perror(ERROR, "Failed to open %s", file_name); return -1; } + if (fread(magic, 1, 2, fp) != 2) { + opkg_perror(ERROR, "Failed to read %s", file_name); + fclose(fp); + return -1; + } + (void)fseek(fp, 0L, SEEK_SET); + + if (src && src->gzip && memcmp(magic, GZIP_MAGIC, 2) == 0) { + fclose(fp); + fp = gzip_fdopen(&zh, file_name); + if (fp == NULL) { + opkg_perror(ERROR, "Failed to open %s", file_name); + return -1; + } + is_gzip = 1; + } buf = xmalloc(len); ob-applypatches: Error: Can't apply patch "0005-libopkg-Detect-gzipped-pkg-lists-by-magic-number.patch"
* build: Set LIST_FILES_SUFFIXPatrick McDermott2019-04-061-0/+1
|
* patches: Detect and optionally suffix gzipped listsPatrick McDermott2019-04-062-0/+144
|
* patches: Apply sequentiallyPatrick McDermott2019-04-064-12/+12
|
* build: Override opkg state dir prefixPatrick McDermott2019-04-061-0/+1
|
* patches: Allow overriding opkg state dir prefixPatrick McDermott2019-04-063-0/+34
|
* patches: Fix segfault on trailing comma in depsPatrick McDermott2019-04-061-0/+39
|
* changelog: Release opkg-lede 0+git20190131.d4ba162-4Patrick McDermott2019-04-052-1/+7
|
* changelog: Release opkg-lede 0+git20190131.d4ba162-3Patrick McDermott2019-04-051-0/+6
|
* opkg-lede-dbg: New binary packagePatrick McDermott2019-04-054-7/+17
| | | | And shorten short description and substvarize common description.
* changelog: Release opkg-lede 0+git20190131.d4ba162-2Patrick McDermott2019-04-041-1/+1
|
* opkg-lede: Conflict with opkg-common, not opkg and opkg-gpgPatrick McDermott2019-04-042-2/+2
|
* build: Make verbose differentlyPatrick McDermott2019-04-041-1/+2
|
* build: Make verbosePatrick McDermott2019-04-041-1/+1
|
* patches: Fix CMake if() command expressionPatrick McDermott2019-04-041-3/+3
|
* patches: Fix CMake OPTION() syntaxPatrick McDermott2019-04-041-3/+3
| | | | | | | | | Fixes: CMake Warning: Manually-specified variables were not used by the project: REQUIRE_UPGRADE_ARGS
* opkg-lede: Update files patternsPatrick McDermott2019-04-041-2/+2
|
* patches: Fix syntax errorPatrick McDermott2019-04-041-3/+3
| | | | I guess I've spent too much time with Perl.
* patches: Add a missing S-o-bPatrick McDermott2019-04-041-1/+2
|
* patches, build: Allow upgrade command without argumentsPatrick McDermott2019-04-043-0/+93
|
* opkg-lede: Conflict with opkg and opkg-gpg (<< 0.2.4-2)Patrick McDermott2019-04-042-0/+2
|
* build: Fix commentPatrick McDermott2019-04-041-1/+2
|
* build, opkg-lede: Manage opkg-key and u-a with u-aPatrick McDermott2019-04-043-3/+7
| | | | How meta.
* build: Set lock file path to /var/lib/opkg/lockPatrick McDermott2019-04-042-0/+3
|
* build: Fix missing backslashPatrick McDermott2019-04-041-1/+1
|
* patches, build: Set default conf file path to /etc/opkg/opkg.confPatrick McDermott2019-04-043-0/+54
|
* changelog: Release opkg-lede 0+git20190131.d4ba162-1Patrick McDermott2019-04-041-1/+1
|
* build: Use OpenWrt's opkg-key (which uses usign)Patrick McDermott2019-04-041-1/+1
|
* opkg-key: New filePatrick McDermott2019-04-041-0/+56
| | | | https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob_plain;f=package/system/opkg/files/opkg-key;h=ae5e8a4591078764352ae766000f92e8230265fb;hb=beca028bd6bb71898052faadff680d8e76f61eb3
* copyright: New filePatrick McDermott2019-04-041-0/+144
|