bzar
A Commando
No! My testing didn't catch it! This is a QA issue
yup, its missing...What's the changelog for the new version plz ?
so i created that folder manually in appdata and the error ws gone. but nothing changed regarding the voting. and i don't understand why there are permission issues anyway the sdcard is fat32 formatted.mkdir: cannot create directory `interfaces/CustomPNDManager': Operation not permitted
cp: target `interfaces/CustomPNDManager' is not a directory
QGtkStyle was unable to detect the current GTK+ theme.
Settings are saved in "/mnt/utmp/pndmanager/settings.cfg"
You mean like the documentation under the start menu->Documentation?(it would be nice to have this in a readme or in the pndmanager description btw.).
It worked for me first time, so I can't imagine what trouble you guys are having, I'm afraid.Under heading '[PNDManager]':
username=levi
apiKey=32 character hex number (so, 512 bit) in lower case, as supplied by the repo
@graupelschauer: Try deleting the settings.cfg and let pndmanager create a fresh one.
[panorama]
dataDirectory=/mnt/utmp/pndmanager
uiDirectory=interfaces
ui=PNDManager
fullscreen=true
[PNDManager]
showSplashScreen=false
showHints=true
mouseCursorVisible=false
lastInstallDevice=
lastInstallLocation=
loggingVerbosity=1
You mean like the documentation under the start menu->Documentation?
I still don't understand where I can get the apikey from.
7220 open("/media/fat/pandora/appdata/libpndman/aircrack-ng.tmp", O_RDWR|O_CREAT|O_TRUNC, 0666) = 26
...
7232 write(26, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 16384) = 16384
...
7232 write(26, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 16384) = 16384
...
7232 rename("/media/fat/pandora/appdata/libpndman/aircrack-ng.tmp", "/media/fat/pandora/menu/aircrack-ng.pnd"
...
7220 close(26 <unfinished ...>
From b169ebcd91332df6efe1a21872a9bd9174caf0dc Mon Sep 17 00:00:00 2001
From: Jari Vetoniemi <mailroxas@gmail.com>
Date: Tue, 10 May 2016 02:26:54 +0300
Subject: [PATCH] curl: hack to close files for package curl handles
Some curl handle users use temporary file and thus we can't do generic
close. Hack the close in package_handle_install.
---
lib/curl.c | 19 ++++++++++++++-----
lib/handle.c | 2 ++
lib/internal.h | 1 +
3 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/lib/curl.c b/lib/curl.c
index 59c7918..525e8ed 100644
--- a/lib/curl.c
+++ b/lib/curl.c
@@ -180,6 +180,18 @@ void _pndman_curl_handle_set_post(pndman_curl_handle *handle, const char *post)
if (post) handle->post = strdup(post);
}
+void _pndman_curl_handle_reset(pndman_curl_handle *handle)
+{
+ assert(handle);
+ curl_multi_remove_handle(_pndman_curlm, handle->curl);
+ curl_easy_reset(handle->curl);
+
+ if (handle->file) {
+ fclose(handle->file);
+ handle->file = NULL;
+ }
+}
+
/* \brief perform curl operation */
int _pndman_curl_handle_perform(pndman_curl_handle *handle)
{
@@ -196,12 +208,8 @@ int _pndman_curl_handle_perform(pndman_curl_handle *handle)
/* reopen handle if needed */
if (handle->file) {
- curl_multi_remove_handle(_pndman_curlm, handle->curl);
- curl_easy_reset(handle->curl);
- fclose(handle->file);
- handle->file = NULL;
+ _pndman_curl_handle_reset(handle);
_pndman_curl_header_free(&handle->header);
- memset(&handle->header, 0, sizeof(pndman_curl_header));
DEBUG(PNDMAN_LEVEL_CRAP, "CURL REOPEN");
}
@@ -351,6 +359,7 @@ static void _pndman_curl_msg(int result, pndman_curl_handle *handle)
handle->retry = 0;
fflush(handle->file);
handle->callback(PNDMAN_CURL_DONE, handle->data, NULL, handle);
+ _pndman_curl_handle_reset(handle);
}
}
diff --git a/lib/handle.c b/lib/handle.c
index b65bcc4..8b751d3 100644
--- a/lib/handle.c
+++ b/lib/handle.c
@@ -271,6 +271,8 @@ static int _pndman_package_handle_install(pndman_package_handle *object, pndman_
assert(object && local);
handle = (pndman_curl_handle*)object->data;
+ _pndman_curl_handle_reset(handle);
+
if (!object->device)
goto handle_no_dev;
if (!object->pnd)
diff --git a/lib/internal.h b/lib/internal.h
index 514a260..9b96a9a 100644
--- a/lib/internal.h
+++ b/lib/internal.h
@@ -160,6 +160,7 @@ void _pndman_debug_hook(const char *file, int line, const char *function, int ve
/* curl */
pndman_curl_handle* _pndman_curl_handle_new(void *data, pndman_curl_progress *progress, pndman_curl_callback callback, const char *path);
void _pndman_curl_handle_free(pndman_curl_handle *handle);
+void _pndman_curl_handle_reset(pndman_curl_handle *handle);
int _pndman_curl_handle_perform(pndman_curl_handle *handle);
void _pndman_curl_handle_set_post(pndman_curl_handle *handle, const char *post);
void _pndman_curl_handle_set_url(pndman_curl_handle *handle, const char *url);
--
2.8.2