summaryrefslogtreecommitdiffstats
path: root/src/ideviceinstaller.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-11-14 02:21:55 +0100
committerGravatar Martin Szulecki2013-11-14 02:21:55 +0100
commit2eb90fedeb614e088b280603fa492b2989e55920 (patch)
treec4b77bfafaaf3a621adb8ae02ebcb55c06ff8e97 /src/ideviceinstaller.c
parent958a48723ff7aa84c43a5266c0809e6d373a1903 (diff)
downloadideviceinstaller-2eb90fedeb614e088b280603fa492b2989e55920.tar.gz
ideviceinstaller-2eb90fedeb614e088b280603fa492b2989e55920.tar.bz2
Turn "could not locate foo" message into a warning instead of confusing users
Diffstat (limited to 'src/ideviceinstaller.c')
-rw-r--r--src/ideviceinstaller.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index 7d10e75..671b6fb 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -145,7 +145,6 @@ static int zip_get_contents(struct zip *zf, const char *filename, int locate_fla
*len = 0;
if (zindex < 0) {
- fprintf(stderr, "ERROR: could not locate %s in archive!\n", filename);
return -1;
}
@@ -816,6 +815,8 @@ run_again:
} else {
plist_from_xml(zbuf, len, &meta_dict);
}
+ } else {
+ fprintf(stderr, "WARNING: could not locate %s in archive!\n", ITUNES_METADATA_PLIST_FILENAME);
}
if (zbuf) {
free(zbuf);
@@ -841,6 +842,7 @@ run_again:
strcat(filename, "Info.plist");
if (zip_get_contents(zf, filename, 0, &zbuf, &len) < 0) {
+ fprintf(stderr, "WARNING: could not locate %s in archive!\n", filename);
zip_unchange_all(zf);
zip_close(zf);
goto leave_cleanup;
@@ -894,6 +896,8 @@ run_again:
len = 0;
if (zip_get_contents(zf, sinfname, 0, &zbuf, &len) == 0) {
sinf = plist_new_data(zbuf, len);
+ } else {
+ fprintf(stderr, "WARNING: could not locate %s in archive!\n", sinfname);
}
free(sinfname);
if (zbuf) {