Don't need \n for perrors.
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 14 Dec 2009 05:57:47 +0000 (05:57 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 14 Dec 2009 05:57:47 +0000 (05:57 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@491 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/opkg_download.c
libopkg/pkg.c

index 70627665ae2de59cb638783a6265526ac5462667..81ce53d22251d94db3d5fa30126d53b84c8b6aee 100644 (file)
@@ -101,7 +101,7 @@ opkg_download(const char *src, const char *dest_file_name,
     sprintf_alloc(&tmp_file_location, "%s/%s", conf->tmp_dir, src_base);
     err = unlink(tmp_file_location);
     if (err && errno != ENOENT) {
-       opkg_perror(ERROR, "Failed to unlink %s\n", tmp_file_location);
+       opkg_perror(ERROR, "Failed to unlink %s", tmp_file_location);
        free(tmp_file_location);
        return -1;
     }
index 411817bc47ed3ddc36db2ff6326dcbe33675f5b1..e54182500d8798e05f09c29292902bf9ff661e70 100644 (file)
@@ -1120,7 +1120,7 @@ pkg_get_installed_files(pkg_t *pkg)
                        pkg->dest->info_dir, pkg->name);
          list_file = fopen(list_file_name, "r");
          if (list_file == NULL) {
-              opkg_perror(ERROR, "Failed to open %s.\n",
+              opkg_perror(ERROR, "Failed to open %s",
                       list_file_name);
               free(list_file_name);
               return pkg->installed_files;