summaryrefslogtreecommitdiff
path: root/Utility
Commit message (Collapse)AuthorAge
* qualify commentGravatar Joey Hess2014-06-09
|
* fix build with old versions of warpGravatar Joey Hess2014-06-04
|
* lazy bytestring fromStrict is not available in stable; use fromChunks insteadGravatar Joey Hess2014-05-29
|
* fix warning messageGravatar Joey Hess2014-05-29
| | | | This should work even back in debian stable's warp
* get rid of (completely safe) uses of Char8Gravatar Joey Hess2014-05-27
| | | | | Char8 often indicates an encoding bug. It didn't here, but I can avoid it and not worry about it.
* refactorGravatar Joey Hess2014-05-14
|
* fix windows buildGravatar Joey Hess2014-05-14
|
* setsid when running webapp in foreground tooGravatar Joey Hess2014-05-14
| | | | | | | | This avoids ssh prompting for passwords on stdin, ever. It may also change other behavior of other programs, as there is no controlling terminal now. However, setsid was already done when running the assistant in daemon mode, so any behavior changes should not be really new.
* relicense general utility library code to BSDGravatar Joey Hess2014-05-10
| | | | | Omitted a couple of files what have had significant contributions from others.
* Merge branch 'master' into bootstrap3Gravatar Joey Hess2014-05-02
|\ | | | | | | | | Conflicts: debian/changelog
| * hlintGravatar Joey Hess2014-04-26
| |
* | create a local copy of Yesod.Form.Bootstrap3Gravatar Sören Brunk2014-04-25
| |
* | bootstrap3 formsGravatar Sören Brunk2014-04-21
|/
* better approach for building distributionupdateGravatar Joey Hess2014-04-21
| | | | Use cabal include file
* fix distributionupdate buildGravatar Joey Hess2014-04-21
| | | | Including avoiding needing cabal's defines for Utility.URI
* Merge branch 'master' into remotecontrolGravatar Joey Hess2014-04-14
|\ | | | | | | | | Conflicts: doc/devblog/day_152__more_ssh_connection_caching.mdwn
| * adjust to not use cpp in modules used by configureGravatar Joey Hess2014-04-14
| |
| * add missing Network.URI Ord instance for Debian stableGravatar Joey Hess2014-04-14
| |
* | sync, assistant, remotedaemon: Use ssh connection caching for git pushes and ↵Gravatar Joey Hess2014-04-12
|/ | | | | | | | | | | | | | | | | pulls. For sync, saves 1 ssh connection per remote. For remotedaemon, the same ssh connection that is already open to run git-annex-shell notifychanges is reused to pull from the remote. Only potential problem is that this also enables connection caching when the assistant syncs with a ssh remote. Including the sync it does when a network connection has just come up. In that case, cached ssh connections are likely to be stale, and so using them would hang. Until I'm sure such problems have been dealt with, this commit needs to stay on the remotecontrol branch, and not be merged to master. This commit was sponsored by Alexandre Dupas.
* wrote test case; found bugs in date math; fixed and simplified using ↵Gravatar Joey Hess2014-04-12
| | | | Data.Time.Calendar
* Improve handling on monthly/yearly scheduling.Gravatar Joey Hess2014-04-12
| | | | Avoid back-to-back runs.
* Improve handling on monthly/yearly scheduling.Gravatar Joey Hess2014-04-11
| | | | | | | | | | | | | | | | | | | Code was still buggy, it turns out (though the recursion checker caught it). In the case of (Schedule (Monthly Nothing) AnyTime), where the last run was on yyyy-12-31, it looped forever. Also, the handling of (Schedule (Yearly Nothing) AnyTime) was wacky where the last run was yyyy-12-31. It would suggest a window starting on the 3rd for the next run (because 31 mod 28 is 3). I think that originally I was wanted to avoid running on 01-01 if it had just run on 12-31. But the code didn't accomplish this, and it's not necessary anyway. This is supposed to calculate the next window meeting the schedule, and for (Schedule (Monthly Nothing), the window starts at 01-01 and runs through 01-31. If that causes two back-to-back runs, well the next one will not be until 02-01 at the earliest. Also, back-to-back runs can be avoided, if desired, by using Divisible 2.
* guard against any remaining infinite recursion bugs; throw error if no ↵Gravatar Joey Hess2014-04-11
| | | | | | | | candidate cn be found in next hundred years Note that the exception thrown is not visible in the webapp currently because it crashes one of Cronner's 2 worker threads, which is never checked.
* Last release didn't quite fix the high cpu issue in all cases, this should.Gravatar Joey Hess2014-04-11
| | | | | | | This is supposed to look for a day past the last day it ran, not a month past. Seems to work, at least in anarcat's test case.
* rename confusingly named "day"Gravatar Joey Hess2014-04-11
|
* assistant: Fix high CPU usage triggered when a monthly fsck is scheduled, ↵Gravatar Joey Hess2014-04-11
| | | | and the last time the job ran was a day of the month > 12. This caused a runaway loop. Thanks to Anarcat for his assistance, and to Maximiliano Curia for identifying the cause of this bug.
* Fix rsync progress parsing in locales that use comma in number display. ↵Gravatar Joey Hess2014-04-10
| | | | Closes: #744148
* merge from propellorGravatar Joey Hess2014-04-09
|
* remotedaemon: avoid extraneous stdout outputGravatar Joey Hess2014-04-08
|
* factored out Utility.SimpleProtocol from the external special remote ↵Gravatar Joey Hess2014-04-05
| | | | implementation
* factor out library code (also used by propellor)Gravatar Joey Hess2014-04-03
|
* clean up warning in windowsGravatar Joey Hess2014-04-02
|
* windows fix try 2Gravatar Joey Hess2014-04-02
|
* fix windows buildGravatar Joey Hess2014-04-02
|
* merge from propellorGravatar Joey Hess2014-04-01
|
* refactorGravatar Joey Hess2014-03-31
|
* avoid importing CommonGravatar Joey Hess2014-03-30
| | | | it caused a loop when reusing this in propellor
* Added required content configuration.Gravatar Joey Hess2014-03-29
| | | | | | | This includes checking when dropping files that any required content configuration is satisfied. However, it does not yet include an active check on the required content; the location log is trusted when checking the required content expression.
* avoid exception when curl exits nonzero (due to eg, bad domain name)Gravatar Joey Hess2014-03-27
|
* add desktop notificationsGravatar Joey Hess2014-03-22
| | | | | | | Motivation: Hook scripts for nautilus or other file managers need to provide the user with feedback that a file is being downloaded. This commit was sponsored by THM Schoemaker.
* fix build with QuickCheck 2.7.1Gravatar Joey Hess2014-03-20
| | | | | | | | | | | | | | | For some reason this was working w/o a cast before, despite POSIXTime etc being newtypes. It stopped working with the new QuickCheck: Utility/QuickCheck.hs:31:33: No instance for (Integral POSIXTime) arising from a use of `arbitrarySizedIntegral' Possible fix: add an instance declaration for (Integral POSIXTime) In the first argument of `nonNegative', namely `arbitrarySizedIntegral' In the expression: nonNegative arbitrarySizedIntegral In an equation for `arbitrary': arbitrary = nonNegative arbitrarySizedIntegral
* Windows: Fix some filename encoding bugs.Gravatar Joey Hess2014-03-19
| | | | | | http://git-annex.branchable.com/bugs/Unicode_file_names_ignored_on_Windows/ Not a complete fix yet.
* Better workaround for problem umasks when eg, setting up ssh keys.Gravatar Joey Hess2014-03-14
|
* webapp: Use securemem for constant time auth token comparisons.Gravatar Joey Hess2014-03-12
| | | | | Debian stable does not have securemem, but neither does it have warp-tls, so just disable use of securemem when not building with https support.
* quick fix to build with old warp-tlsGravatar Joey Hess2014-03-12
| | | | | | | | Debian stable's warp-tls is too old to support the new https feature well, so only use http with that old version. Note that the webapp still depends on warp-tls, because the TLSSettings type is used.
* use Monoid instance for OrderingGravatar Joey Hess2014-03-09
|
* annex.startupscan can be set to false to disable the assistant's startup scan.Gravatar Joey Hess2014-03-05
|
* fix build w/o TDFAGravatar Joey Hess2014-03-04
|
* remove buggy --listen=host:port supportGravatar Joey Hess2014-02-28
|
* use https when .git/annex/privkey.pem and .git/annex/certificate.pem exist ↵Gravatar Joey Hess2014-02-28
| | | | | | | (untested) I have not managed to generate a key that is accepted by the old version of warp-tls I have here.