diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-09-20 15:12:15 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-09-20 15:12:15 +0300 |
commit | 43850a126b94690302bc2564905141b077b490e7 (patch) | |
tree | 475d66e99a446a9b4d82ff10104e6858722c6ba8 /src/database.c | |
parent | 8a4371ccd73e8f8672466881bd3b782de919cd93 (diff) | |
download | apk-tools-43850a126b94690302bc2564905141b077b490e7.tar.gz apk-tools-43850a126b94690302bc2564905141b077b490e7.tar.bz2 apk-tools-43850a126b94690302bc2564905141b077b490e7.tar.xz apk-tools-43850a126b94690302bc2564905141b077b490e7.zip |
apk: implement --progress-fd to write progress to a specified fd
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/database.c b/src/database.c index d1a8f1a..e130f0b 100644 --- a/src/database.c +++ b/src/database.c @@ -1359,6 +1359,7 @@ int apk_db_open(struct apk_database *db, struct apk_db_options *dbopts) int r, fd, write_arch = FALSE; memset(db, 0, sizeof(*db)); + db->progress_fd = dbopts->progress_fd; if (apk_flags & APK_SIMULATE) { dbopts->open_flags &= ~(APK_OPENF_CREATE | APK_OPENF_WRITE); dbopts->open_flags |= APK_OPENF_READ; |