Created
September 26, 2014 19:15
-
-
Save cp16net/cb31592e721a04527e25 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/nova/guest/apt/apt.cc b/src/nova/guest/apt/apt.cc | |
| index e55b6a8..35c1fa3 100644 | |
| --- a/src/nova/guest/apt/apt.cc | |
| +++ b/src/nova/guest/apt/apt.cc | |
| @@ -323,7 +323,7 @@ void AptGuest::write_file(const char * name, const char * file_ext, | |
| file << file_contents.get(); | |
| file.close(); | |
| NOVA_LOG_INFO("Copying new %s file into place.", name); | |
| - string file_name = str(format("/etc/apt/%s%s.d/cdb") % name % file_ext); | |
| + string file_name = str(format("/etc/apt/%s.d/cdb%s") % name % file_ext); | |
| process::execute(list_of("/usr/bin/sudo")("cp")("/tmp/cdb") | |
| (file_name.c_str())); | |
| } | |
| @@ -332,7 +332,7 @@ void AptGuest::write_repo_files(const optional<string> & preferences_file, | |
| const optional<string> & sources_file, | |
| const optional<double> time_out) { | |
| write_file("preferences", "", preferences_file, time_out); | |
| - write_file("sources", ".list", sources_file, time_out); | |
| + write_file("sources.list", ".list", sources_file, time_out); | |
| update(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment