Merge lp:~pedronis/desktopcouch/trying-with-an-other-couchdb into lp:desktopcouch

Proposed by Samuele Pedroni
Status: Merged
Approved by: Samuele Pedroni
Approved revision: 282
Merged at revision: 280
Proposed branch: lp:~pedronis/desktopcouch/trying-with-an-other-couchdb
Merge into: lp:desktopcouch
Diff against target: 25 lines (+3/-2)
2 files modified
desktopcouch/application/local_files.py (+2/-1)
desktopcouch/application/start_local_couchdb.py (+1/-1)
To merge this branch: bzr merge lp:~pedronis/desktopcouch/trying-with-an-other-couchdb
Reviewer Review Type Date Requested Status
Eric Casteleijn (community) Approve
Review via email: mp+72260@code.launchpad.net

Commit message

introduce COUCHDB_INI to control the default.ini when supplying a couchdb exe with COUCH; tiny error logging fix

Description of the change

tiny fix, when using COUCHDB to specify a different couch than the system there's a need to point to it's default.ini as well (it contains some location specific paths etc)

To post a comment you must log in.
Revision history for this message
Eric Casteleijn (thisfred) :
review: Approve
Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (28.5 KiB)

The attempt to merge lp:~pedronis/desktopcouch/trying-with-an-other-couchdb into lp:desktopcouch failed. Below is the output from the failed tests.

Apache CouchDB has started, time to relax.
Browse your desktop CouchDB at file:///tmp/tmp6Ijhem/data/couchdb.html
desktopcouch.application.migration.tests.test_migration
  TestMigration
    test_migration_deleted_flag_to_trash ... [OK]
    test_migration_in_face_of_broken_records ... [OK]
    test_migration_script_is_run ... [OK]
    test_migration_script_is_run_and_can_access_view ... [OK]
  TestRegistration
    test_register_migration_is_added_to_the_registry ... [OK]
desktopcouch.application.plugins.tests.test_ubuntuone_pairing
  TestUbuntonePairing
    test_pair_with_ubuntuone_no_record ... [OK]
    test_pair_with_ubuntuone_no_view ... [OK]
    test_pair_with_ubuntuone_record_present ... [OK]
    test_pair_with_ubuntuone_user_deleted_record ... [OK]
  TestUbuntuOnePlugin
    test_got_new_credentials ... [OK]
    test_got_new_credentials_other ... [OK]
    test_listen_to_dbus ... [OK]
desktopcouch.application.plugins.tests.test_plugins
  TestLoadPlugins
    test_load_plugins ... [OK]
desktopcouch.application.pair.tests.test_network_io
  TestNetworkIO
    test_successful_lifespan ... [OK]
desktopcouch.application.pair.tests.test_couchdb_io
  TestCouchdbIo
    test_get_database_names_replicatable ... [OK]
    test_get_my_host_unique_id ... [OK]
    test_mkuri ... [OK]
    test_obsfuscation ... [OK]
    test_put_dynamic_paired_host ... [OK]
    test_put_static_paired_service ... [OK]
desktopcouch.application.tests.test_service
  TestService
    test_start_desktopcouch_replication ... [OK]
    test_start_migrate_data ... [OK]
    test_start_new_desktopcouch_with_plugins ... [OK]
desktopcouch.application.tests.test_local_files
  TestKeyringIntegration
    test_with_auth ... [OK]
    test_with_no_auth ... [OK]
  TestLocalFiles
    test_all_files_returned ... [OK]
    test_bind_address ... [OK]
    test_couch_chain_ini_files ... [OK]
    test_xdg_overwrite_works ... [OK]
desktopcouch.application.tests.test_start_local_couchdb
  TestUpda...

282. By Samuele Pedroni

fix line too long

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'desktopcouch/application/local_files.py'
2--- desktopcouch/application/local_files.py 2011-04-13 21:31:15 +0000
3+++ desktopcouch/application/local_files.py 2011-08-22 12:40:26 +0000
4@@ -259,7 +259,8 @@
5 def couch_chain_ini_files(self):
6 """Chain couchdb ini files."""
7 # Explicitly add default ini file
8- ini_files = ["/etc/couchdb/default.ini"]
9+ ini_files = [os.environ.get("COUCHDB_INI") or
10+ "/etc/couchdb/default.ini"]
11
12 # find all ini files in the desktopcouch XDG_CONFIG_DIRS and
13 # add them to the chain
14
15=== modified file 'desktopcouch/application/start_local_couchdb.py'
16--- desktopcouch/application/start_local_couchdb.py 2011-04-06 18:34:35 +0000
17+++ desktopcouch/application/start_local_couchdb.py 2011-08-22 12:40:26 +0000
18@@ -166,7 +166,7 @@
19 break
20 except RuntimeError, ex:
21 saved_exception = ex
22- logging.exception("Starting couchdb failed on try %d", (retry,))
23+ logging.exception("Starting couchdb failed on try %d", retry)
24 time.sleep(1)
25 continue
26

Subscribers

People subscribed via source and target branches