From 88d2d59f8388c9a2d80f39e1024992d698038416 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 29 May 2013 13:52:42 -0400 Subject: [PATCH 1/2] glacier: Better handling of the glacier inventory, which avoids duplicate uploads to the same glacier repository by `git annex copy`. The checkpresent hook can return either True or, False, or fail with a message if it cannot successfully check the remote. Currently for glacier, when --trust-glacier is not set, it always returns False. Crucially, in the case when a file is in glacier, this is telling git-annex it's not there, so copy re-uploads it. This is not desirable; it breaks using glacier-cli to retreive that file later, and it wastes money/bandwidth. What if it instead, when the glacier inventory is missing a file, it returns False. And when the glacier inventory has a file, unless --trust-glacier is set, it *fails*. The result would be: * `git annex copy --to glacier` would only send things not listed in inventory. If a file is listed in the inventory, `copy` would complain that --trust-glacier` is not set, and not re-upload the file. * `git annex drop` would only trust that glacier has a file when --trust-glacier is set. Behavior unchanged. * `git annex move --to glacier`, when the file is not listed in inventory, would send the file, and delete it locally. Behavior unchanged. * `git annex move --to glacier`, when the file is listed in inventory, would only trust that glacier has the file when --trust-glacier is set * `git annex copy --from glacier` / `git annex get`, when the file is located in glacier, would trust the location log, and attempt to get the file from glacier. --- Remote/Glacier.hs | 4 +--- debian/changelog | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Remote/Glacier.hs b/Remote/Glacier.hs index 65c978bd4f..c1a53347d8 100644 --- a/Remote/Glacier.hs +++ b/Remote/Glacier.hs @@ -195,14 +195,12 @@ checkPresent r k = do , Param $ archive r k ] - untrusted = do - showLongNote $ unlines + untrusted = return $ Left $ unlines [ "Glacier's inventory says it has a copy." , "However, the inventory could be out of date, if it was recently removed." , "(Use --trust-glacier if you're sure it's still in Glacier.)" , "" ] - return $ Right False glacierAction :: Remote -> [CommandParam] -> Annex Bool glacierAction r params = runGlacier (config r) (uuid r) params diff --git a/debian/changelog b/debian/changelog index 2c40b472d5..3d617f0894 100644 --- a/debian/changelog +++ b/debian/changelog @@ -21,6 +21,8 @@ git-annex (4.20130522) UNRELEASED; urgency=low * XMPP: Fix a file descriptor leak. * Android: Added an "Open WebApp" item to the terminal's menu. Should work for Android devices that cannot auto-open the webapp on start. + * glacier: Better handling of the glacier inventory, which avoids + duplicate uploads to the same glacier repository by `git annex copy`. -- Joey Hess Tue, 21 May 2013 18:22:46 -0400 From aef6d84e40c777dbc9ef21e8f64511d15e128a81 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 29 May 2013 18:59:40 -0400 Subject: [PATCH 2/2] make webapp menu item be visible in all languages --- standalone/android/term.patch | 314 ++++++++++++++++++++++++++++++++++ 1 file changed, 314 insertions(+) diff --git a/standalone/android/term.patch b/standalone/android/term.patch index da5989328e..05a40e567f 100644 --- a/standalone/android/term.patch +++ b/standalone/android/term.patch @@ -45,6 +45,320 @@ index 064f833..fe5f3a3 100644 Predešlé okno + Další okno + Reset terminálu +- Napiš email ++ WebApp + Speciální znaky + Přepnout soft. klávesnici + +@@ -124,4 +124,4 @@ + Není nastaveno žádné tlačitko pro funkční klávesu. + + Zavřít okno? +- +\ No newline at end of file ++ +diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml +index f6134a5..06d2e1f 100644 +--- a/res/values-de/strings.xml ++++ b/res/values-de/strings.xml +@@ -23,7 +23,7 @@ + Vorh. Fenster + Nächst. Fenster + Zurücksetzen +- Email schreiben ++ WebApp + Spezialtasten + Tastatur an/aus + +@@ -124,4 +124,4 @@ + + Beliebige Scripte im Terminal Emulator ausführen + Erlaubt Anwendungen, neue Fenster im Android Terminal Emulator zu öffnen und in diesen Befehle auszuführen. Dies schließt alle Berechtigungen von Android Terminal Emulator ein, inklusive Internetzugang und Schreib-/Leserechte auf der SD-Karte. +- +\ No newline at end of file ++ +diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml +index 94553b2..92d9e2a 100644 +--- a/res/values-es/strings.xml ++++ b/res/values-es/strings.xml +@@ -23,7 +23,7 @@ + Ventana anterior + Ventana posterior + Reiniciar consola +- Enviar email ++ WebApp + Teclas especiales + Ver/ocultar teclado + +diff --git a/res/values-eu/strings.xml b/res/values-eu/strings.xml +index b9f0586..92a16a0 100644 +--- a/res/values-eu/strings.xml ++++ b/res/values-eu/strings.xml +@@ -23,7 +23,7 @@ + Aurreko leihoa + Hurrengo leihoa + Berrezarri terminala +- Bidali eposta ...(r)i ++ WebApp + Tekla bereziak + Txandakatu soft teklatua + +diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml +index beab2be..529f720 100644 +--- a/res/values-fr/strings.xml ++++ b/res/values-fr/strings.xml +@@ -24,7 +24,7 @@ + Fenêtre Préc. + Fenêtre Suiv. + Terminal par défaut +- Envoyer un e-mail ++ WebApp + Touches spéciales + Afficher/Masquer Clavier + +diff --git a/res/values-hu/strings.xml b/res/values-hu/strings.xml +index 5dbecb5..ce917c5 100644 +--- a/res/values-hu/strings.xml ++++ b/res/values-hu/strings.xml +@@ -23,7 +23,7 @@ + Előző ablak + Következő ablak + Alaphelyzet +- Küldés emailben ++ WebApp + Speciális billentyűk + Billentyűzet ki/be + +@@ -148,4 +148,4 @@ + Az Alt billentyű ESC-et küld + Az Alt billentyű ESC-et küld. + Az Alt billentyű nem ESC-et küld. +- +\ No newline at end of file ++ +diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml +index e6a7294..9d97869 100644 +--- a/res/values-it/strings.xml ++++ b/res/values-it/strings.xml +@@ -23,7 +23,7 @@ + Fin. successiva + Fin. precedente + Reset terminale +- Invia email ++ WebApp + Tasti speciali + Mostra/nascondi tastiera + +diff --git a/res/values-ja/strings.xml b/res/values-ja/strings.xml +index 502fa23..dbfe9fa 100644 +--- a/res/values-ja/strings.xml ++++ b/res/values-ja/strings.xml +@@ -23,7 +23,7 @@ + 前のウインドウ + 次のウインドウ + 端末をリセット +- メール送信 ++ WebApp + 特殊キー + ソフトキーボード + +diff --git a/res/values-ka/strings.xml b/res/values-ka/strings.xml +index 06629d0..1d545b6 100644 +--- a/res/values-ka/strings.xml ++++ b/res/values-ka/strings.xml +@@ -23,7 +23,7 @@ + წინა ფანჯარა + შემდეგი ფანჯარა + ტერმინალის რესტარტი +- ელ-ფოსტის გაგზავნა ++ WebApp + სპეციალური ღილაკები + პროგრამული კლავიატურის ჩართ./გამორთ. + +diff --git a/res/values-nb/strings.xml b/res/values-nb/strings.xml +index d81ee07..c370c6f 100644 +--- a/res/values-nb/strings.xml ++++ b/res/values-nb/strings.xml +@@ -18,7 +18,7 @@ + Terminal Emulator + Innstillinger + Tilbakestill terminal +- Send epost til ++ WebApp + Spesielle tegn + Veksle virtuelt tastatur + +diff --git a/res/values-nl/strings.xml b/res/values-nl/strings.xml +index 19fa3d0..e24fbf5 100644 +--- a/res/values-nl/strings.xml ++++ b/res/values-nl/strings.xml +@@ -23,7 +23,7 @@ + Vorig venster + Volgend venster + Herstellen +- E-mail sturen naar ++ WebApp + Speciale knoppen + Toetsenbord aan/uit + +diff --git a/res/values-pl/strings.xml b/res/values-pl/strings.xml +index 25b3b43..2e0e651 100644 +--- a/res/values-pl/strings.xml ++++ b/res/values-pl/strings.xml +@@ -23,7 +23,7 @@ + Poprzednie okno + Następne okno + Wyczyść terminal +- Wyślij e-mail ++ WebApp + Przyciski specjalne + Pokaż klawiaturę + +diff --git a/res/values-pt-rPT/strings.xml b/res/values-pt-rPT/strings.xml +index aa4ba54..aa3d735 100644 +--- a/res/values-pt-rPT/strings.xml ++++ b/res/values-pt-rPT/strings.xml +@@ -18,7 +18,7 @@ + Terminal Emulator + Preferências + Reset terminal +- Email para ++ WebApp + Teclas especiais + Abrir teclado + +diff --git a/res/values-pt/strings.xml b/res/values-pt/strings.xml +index 2d992f9..e53a9ac 100644 +--- a/res/values-pt/strings.xml ++++ b/res/values-pt/strings.xml +@@ -23,7 +23,7 @@ + Anterior + Seguinte + Repor terminal +- Enviar mensagem para ++ WebApp + Teclas especiais + Mostrar/ocultar teclado + +diff --git a/res/values-ro/strings.xml b/res/values-ro/strings.xml +index 3c7ea06..7a072d0 100644 +--- a/res/values-ro/strings.xml ++++ b/res/values-ro/strings.xml +@@ -21,7 +21,7 @@ + "Fereastra anterioră" + "Fereastra următoare" + "Resetaţi " +- "E-mail" ++ WebApp + "Taste speciale" + "Comutați tastatura" + +@@ -123,4 +123,4 @@ + "Tasta Alt trimite ESC" + "Tasta Alt trimite ESC." + "Tasta Alt nu trimite ESC." +- +\ No newline at end of file ++ +diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml +index 0e96360..762324e 100644 +--- a/res/values-ru/strings.xml ++++ b/res/values-ru/strings.xml +@@ -8,7 +8,7 @@ + Предыдущее окно + Следующее окно + Сбросить терминал +- Отправить Email ++ WebApp + Специальные клавиши + Экранная клавиатура + Терминальное состояние этого окна было сброшено. +diff --git a/res/values-sk/strings.xml b/res/values-sk/strings.xml +index ef35366..cc31d80 100644 +--- a/res/values-sk/strings.xml ++++ b/res/values-sk/strings.xml +@@ -23,7 +23,7 @@ + Dalšie okno + Predch. okno + Obnoviť term. +- Poslať e-mailom ++ WebApp + Špec. klávesy + Skryť/zobraziť klávesnicu + +diff --git a/res/values-sv/strings.xml b/res/values-sv/strings.xml +index 1aa9055..8de6c09 100644 +--- a/res/values-sv/strings.xml ++++ b/res/values-sv/strings.xml +@@ -3,7 +3,7 @@ + Terminalemulator + Inställningar + Återställ terminal +- E-posta till ++ WebApp + Special tangenter + Växla till virtuellt tangentbord + Aktivera VäckningsLås +diff --git a/res/values-tr/strings.xml b/res/values-tr/strings.xml +index b45fa12..fb70f78 100644 +--- a/res/values-tr/strings.xml ++++ b/res/values-tr/strings.xml +@@ -18,7 +18,7 @@ + Terminal Emülatörü + Tercihler + Terminali yeniden başlat +- Email olarak yolla ++ WebApp + Özel tuşlar + Ekran klavyesine geç + +diff --git a/res/values-uk/strings.xml b/res/values-uk/strings.xml +index 2f267a9..d3622c4 100644 +--- a/res/values-uk/strings.xml ++++ b/res/values-uk/strings.xml +@@ -8,7 +8,7 @@ + Попереднє вікно + Наступне вікно + Скинути термінал +- Відіслати Email ++ WebApp + Спеціальні клавіші + Екранна клавіатура + "Термінальний стан цього вікна було скинуто." +diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml +index 6f47b4f..81316ec 100644 +--- a/res/values-zh-rCN/strings.xml ++++ b/res/values-zh-rCN/strings.xml +@@ -18,7 +18,7 @@ + 终端模拟器 + 首选项 + 重置终端 +- 发送电子邮件到... ++ WebApp + 特殊键 + 打开/关闭软键盘 + +diff --git a/res/values-zh-rTW/strings.xml b/res/values-zh-rTW/strings.xml +index afda0f1..37d1b50 100644 +--- a/res/values-zh-rTW/strings.xml ++++ b/res/values-zh-rTW/strings.xml +@@ -18,7 +18,7 @@ + 模擬終端 + 設定 + 結束 +- 以電郵傳送 ++ WebApp + 特別按鍵 + 顯示/隱藏鍵盤 + diff --git a/res/values/defaults.xml b/res/values/defaults.xml index 67287b2..9b7cfcd 100644 --- a/res/values/defaults.xml