[ease] Fix silly testing code left in libarchive save.
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease] Fix silly testing code left in libarchive save.
- Date: Fri, 16 Jul 2010 05:56:10 +0000 (UTC)
commit 18b25d7a8165ecb70f6b5d919a7d35154479a70c
Author: Nate Stedman <natesm gmail com>
Date: Fri Jul 16 01:55:43 2010 -0400
Fix silly testing code left in libarchive save.
- Also update documentation.
src/ease-temp.vala | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/ease-temp.vala b/src/ease-temp.vala
index 463d953..3df72f5 100644
--- a/src/ease-temp.vala
+++ b/src/ease-temp.vala
@@ -123,10 +123,7 @@ public static class Ease.Temp : Object
/**
* Creates an archive from a temporary directory.
*
- * archive() will use libarchive to archive a temporary directory (or,
- * technically, any directory) to a single file. Currently, it runs "tar"
- * with Posix.system(), a solution that should be replaced with a more
- * portable alternative.
+ * archive() uses libarchive to create a tarball of the temporary directory.
*
* @param temp_path The path of the temporary directory.
* @param filename The filename of the archive to save to.
@@ -142,7 +139,7 @@ public static class Ease.Temp : Object
archive.set_compression_none();
// open file
- if (archive.open_filename(/*filename*/"/Users/Nate/Desktop/asdf.tar") == Archive.Result.FAILED)
+ if (archive.open_filename(filename) == Archive.Result.FAILED)
{
throw new Error(0, 0, "Error opening %s", filename);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]