path: root/src/apk_io.h
diff options
authorTimo Teras <>2009-06-28 20:36:16 +0300
committerTimo Teras <>2009-06-29 09:29:57 +0300
commit233918e518f72e469ba39206abf70250bd6fc54a (patch)
tree426a311a98ffa3c4bc592287730b3a55e58a9197 /src/apk_io.h
parentfac4cdb3fad6037e0841724a50d5364d16603f07 (diff)
db: cache packages (ref #49)
If /etc/apk/cache is a symlink to directory, a copy of all installed packages is stored there, and the index of remote repositories will be there instead of /var/lib/apk. This enables to reconstruct running system during boot. Left as todo: remove cached copy when the package is removed, and additional apk applet to download missing packages to cache and/or remove extra items.
Diffstat (limited to 'src/apk_io.h')
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apk_io.h b/src/apk_io.h
index e0d9629..2bb862c 100644
--- a/src/apk_io.h
+++ b/src/apk_io.h
@@ -3,7 +3,7 @@
* Copyright (C) 2008 Timo Teräs <>
* All rights reserved.
- * This program is free software; you can redistribute it and/or modify it
+ * This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation. See for details.
@@ -59,6 +59,7 @@ struct apk_bstream *apk_bstream_from_istream(struct apk_istream *istream);
struct apk_bstream *apk_bstream_from_fd(int fd);
struct apk_bstream *apk_bstream_from_file(const char *file);
struct apk_bstream *apk_bstream_from_url(const char *url);
+struct apk_bstream *apk_bstream_tee(struct apk_bstream *from, const char *to);
struct apk_ostream *apk_ostream_to_fd(int fd);
struct apk_ostream *apk_ostream_to_file(const char *file, mode_t mode);