diff options
author | Michael Mason <ms13sp@gmail.com> | 2009-12-29 13:11:40 +0000 |
---|---|---|
committer | Michael Mason <ms13sp@gmail.com> | 2009-12-29 13:11:40 +0000 |
commit | 96265791c63b3d6036b230257203f1aa1e670180 (patch) | |
tree | ded7de372cad816e43b9bbd206575255aabf62c2 | |
parent | fd4efe9e655c6e4bc416aaac073aea4218360124 (diff) | |
parent | 2a6fa45130624153501c435c46f25f774d7747c3 (diff) | |
download | aports-96265791c63b3d6036b230257203f1aa1e670180.tar.bz2 aports-96265791c63b3d6036b230257203f1aa1e670180.tar.xz |
Merge branch 'master' of git://git.alpinelinux.org/aports
-rw-r--r-- | main/apk-tools/0001-state-Default-interactive-action-is-Yes.patch | 27 | ||||
-rw-r--r-- | main/apk-tools/0002-db-keep-packages-with-no-files-with-installed-status.patch | 46 | ||||
-rw-r--r-- | main/apk-tools/APKBUILD | 8 | ||||
-rw-r--r-- | x11/cups/APKBUILD | 4 | ||||
-rw-r--r-- | x11/cups/cupsd.initd | 2 |
5 files changed, 82 insertions, 5 deletions
diff --git a/main/apk-tools/0001-state-Default-interactive-action-is-Yes.patch b/main/apk-tools/0001-state-Default-interactive-action-is-Yes.patch new file mode 100644 index 000000000..b025a9b78 --- /dev/null +++ b/main/apk-tools/0001-state-Default-interactive-action-is-Yes.patch @@ -0,0 +1,27 @@ +From d67ee300b6cbd9deaaa8c5e506e836e253f7b77d Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Fri, 25 Dec 2009 07:02:32 +0000 +Subject: [PATCH 1/2] state: Default interactive action is Yes + +When pressing only <enter> on the question "..continue [Y/n]?" then +lets take that as a "yes" +--- + src/state.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/state.c b/src/state.c +index 94afe86..1bd29bf 100644 +--- a/src/state.c ++++ b/src/state.c +@@ -771,7 +771,7 @@ int apk_state_commit(struct apk_state *state, + printf("Do you want to continue [Y/n]? "); + fflush(stdout); + r = fgetc(stdin); +- if (r != 'y' && r != 'Y') ++ if (r != 'y' && r != 'Y' && r != '\n') + return -1; + } + } +-- +1.6.5.7 + diff --git a/main/apk-tools/0002-db-keep-packages-with-no-files-with-installed-status.patch b/main/apk-tools/0002-db-keep-packages-with-no-files-with-installed-status.patch new file mode 100644 index 000000000..3061ed560 --- /dev/null +++ b/main/apk-tools/0002-db-keep-packages-with-no-files-with-installed-status.patch @@ -0,0 +1,46 @@ +From 3f9fe4c28be7987bd404f06e27ed03aafd8e8b52 Mon Sep 17 00:00:00 2001 +From: Timo Teras <timo.teras@iki.fi> +Date: Fri, 25 Dec 2009 14:14:40 +0200 +Subject: [PATCH 2/2] db: keep packages with no files with installed status + +got broke few commits ago when apk_pkg_installed() call was +moved to happen after the package name has been read. +--- + src/database.c | 16 ++++++++++------ + 1 files changed, 10 insertions(+), 6 deletions(-) + +diff --git a/src/database.c b/src/database.c +index 5118f5c..2fcb275 100644 +--- a/src/database.c ++++ b/src/database.c +@@ -587,17 +587,21 @@ int apk_db_index_read(struct apk_database *db, struct apk_bstream *bs, int repo) + } + + /* Standard index line? */ +- if (apk_pkg_add_info(db, pkg, field, l) == 0) ++ if (apk_pkg_add_info(db, pkg, field, l) == 0) { ++ if (repo == -1 && field == 'S') { ++ /* Instert to installed database; this needs to ++ * happen after package name has been read, but ++ * before first FDB entry. */ ++ ipkg = apk_pkg_install(db, pkg); ++ diri_node = hlist_tail_ptr(&ipkg->owned_dirs); ++ } + continue; ++ } + +- if (repo != -1) { ++ if (repo != -1 || ipkg == NULL) { + apk_error("Invalid index entry '%c'", field); + return -1; + } +- if (ipkg == NULL) { +- ipkg = apk_pkg_install(db, pkg); +- diri_node = hlist_tail_ptr(&ipkg->owned_dirs); +- } + + /* Check FDB special entries */ + switch (field) { +-- +1.6.5.7 + diff --git a/main/apk-tools/APKBUILD b/main/apk-tools/APKBUILD index 6120185ed..3db72d348 100644 --- a/main/apk-tools/APKBUILD +++ b/main/apk-tools/APKBUILD @@ -1,12 +1,14 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=apk-tools pkgver=2.0 -pkgrel=0 +pkgrel=1 pkgdesc="Alpine Package Keeper - package manager for alpine" subpackages="$pkgname-static" depends= makedepends="zlib-dev openssl-dev pkgconfig" source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2 + 0001-state-Default-interactive-action-is-Yes.patch + 0002-db-keep-packages-with-no-files-with-installed-status.patch " @@ -40,4 +42,6 @@ static() { "$subpkgdir"/sbin/apk.static } -md5sums="dc827e62065c940bbcec1c93099a5718 apk-tools-2.0.tar.bz2" +md5sums="dc827e62065c940bbcec1c93099a5718 apk-tools-2.0.tar.bz2 +36e514cbc781759dbb6eb84e35f6072d 0001-state-Default-interactive-action-is-Yes.patch +180368300d46c5b6de0d5eb43d90547e 0002-db-keep-packages-with-no-files-with-installed-status.patch" diff --git a/x11/cups/APKBUILD b/x11/cups/APKBUILD index ccb9632b3..26fd2ad2f 100644 --- a/x11/cups/APKBUILD +++ b/x11/cups/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=cups pkgver=1.4.2 -pkgrel=0 +pkgrel=1 pkgdesc="The CUPS Printing System" url="http://www.cups.org/" license="GPL" @@ -89,4 +89,4 @@ client() { md5sums="d95e2d588e3d36e563027a963b117b1b cups-1.4.2-source.tar.bz2 f861b18f4446c43918c8643dcbbd7f6d cups.logrotate -a1fb32d0f7745bada3c45acbf883bd93 cupsd.initd" +1154ed66fdcfa0523f929a369079f43c cupsd.initd" diff --git a/x11/cups/cupsd.initd b/x11/cups/cupsd.initd index e5529eecc..f59e27b4c 100644 --- a/x11/cups/cupsd.initd +++ b/x11/cups/cupsd.initd @@ -2,7 +2,7 @@ depend() { use net - @neededservices@ + need dbus before nfs after logger } |