Commit Graph

54 Commits

Author SHA1 Message Date
Martin A. Brown 8a554a430d adding 2016 LDP copyright to each file 2016-04-29 11:02:02 -04:00
Martin A. Brown 53c476cebc pyflakes/pep8 adjustments 2016-04-28 12:12:41 -04:00
Martin A. Brown 66291ca237 flakes: remove reference to operator 2016-04-28 11:05:15 -04:00
Martin A. Brown af80925d70 remove references to unused statinfo stuff 2016-04-02 11:58:19 -07:00
Martin A. Brown 691a4bf8d6 make sure to sort the files by name 2016-04-02 10:46:43 -07:00
Martin A. Brown 93390cd467 add tools for computing and sorting source MD5s 2016-04-02 10:45:53 -07:00
Martin A. Brown 673ddaf3e9 skip any directories on stat expedition 2016-04-01 22:17:53 -07:00
Martin A. Brown c442debc51 specify default loglevel in function signature 2016-03-28 11:10:27 -07:00
Martin A. Brown c0233a73b2 deal with 2/3 naming for stringy things 2016-03-27 01:02:44 -07:00
Martin A. Brown deaee034fc make an end run around the XSL/fop problem
teach the DocBook4 XML utility itself to set fop.extensions = 0 and
fop1.extensions = 1 until such time as the upstream ldp-docbook-xsl packages
can be repaired and/or adjusted
2016-03-27 00:44:00 -07:00
Martin A. Brown 3f92a7a95c everybody gets unicode_literals 2016-03-14 22:18:09 -07:00
Martin A. Brown bb7fbccc6b switch to codecs.open and expect UTF-8 data 2016-03-14 21:42:07 -07:00
Martin A. Brown f20fb1c481 no point in using makefh() now; remove 2016-03-14 20:51:55 -07:00
Martin A. Brown 7aa99ec502 moving sameFilesystem to utils.py 2016-03-08 09:45:54 -08:00
Martin A. Brown e7794eea20 relocating function 2016-03-07 22:13:23 -08:00
Martin A. Brown be78491fd6 do not allow None as the b argument (crazy) 2016-03-07 19:57:17 -08:00
Martin A. Brown 99d93fb4ce allow None as the b argument 2016-03-07 19:56:27 -08:00
Martin A. Brown bd7b08ce23 OK, so a can be anything, not just a directory 2016-03-07 18:54:08 -08:00
Martin A. Brown 8c6ceba912 adding a function to swap directories 2016-03-07 15:04:16 -08:00
Martin A. Brown 1dbc0e5f8b always log the contents of the tldp-build-* files in --debug mode 2016-03-04 17:06:55 -08:00
Martin A. Brown efa2c9432a bump up verbosity of failed excute() to logger.info 2016-03-01 21:38:04 -08:00
Martin A. Brown 16885508da pep8/pyflakes 2016-02-29 20:33:14 -08:00
Martin A. Brown ddb5424941 get 100% coverage on the utils.py module 2016-02-29 11:32:01 -08:00
Martin A. Brown 066f319156 change wrapped function name to "timing" for log entry 2016-02-26 23:18:24 -08:00
Martin A. Brown 9137946a05 adding timing to a few methods 2016-02-26 23:02:00 -08:00
Martin A. Brown ca43130a6d spit out the contents of the STDERR, STDOUT and executed script if failure 2016-02-26 11:24:42 -08:00
Martin A. Brown 44fc44d15a remove logging logic from utils 2016-02-25 12:29:12 -08:00
Martin A. Brown 7db6bb842e add an asterisk for log readers 2016-02-23 22:44:39 -08:00
Martin A. Brown 8c69e05f94 beefing up some testing for new functions 2016-02-23 13:10:10 -08:00
Martin A. Brown 6ad64ea0e0 add an arg_isfile 2016-02-23 12:18:46 -08:00
Martin A. Brown 6c4fd88944 adding arg_* handlers; fix FD leakage in execute
fix FD leakage in function execute: must close stdout and stderr if
execute opens them (process logging in per-document logdir)
add functions arg_isloglevel, arg_isdirectory and arg_isexecutable
2016-02-23 11:02:36 -08:00
Martin A. Brown b6edf39aeb try the loglevel before using it 2016-02-22 17:46:41 -08:00
Martin A. Brown f6eedfcb7b flesh out CLI options and add --loglevel option 2016-02-22 17:10:45 -08:00
Martin A. Brown 0a32e87dfc moving isdirectory into utils 2016-02-22 13:04:03 -08:00
Martin A. Brown 468f0f6317 adding firstfoundfile function 2016-02-22 12:32:16 -08:00
Martin A. Brown f200c0efc2 add function stem_and_ext to the utils 2016-02-19 00:54:16 -08:00
Martin A. Brown f04b2dfbd0 pep8 fix 2016-02-18 23:07:14 -08:00
Martin A. Brown 1578e282cc ensure that statfiles includes directories
statfiles was not including directories; it does now
2016-02-18 21:55:56 -08:00
Martin A. Brown 88f518ede7 add docstrings and text to utils functions 2016-02-18 17:23:26 -08:00
Martin A. Brown 809ddc545b adding # -*- coding: utf8 -*- 2016-02-18 13:25:02 -08:00
Martin A. Brown 62198e5973 in execute, before Popen, ensure cmd[0] has +x
rename is_executable() to isexecutable()
adjust testing code to match change to execute()
2016-02-18 09:13:46 -08:00
Martin A. Brown 2550047d23 pep8/pyflakes corrections 2016-02-17 19:38:27 -08:00
Martin A. Brown bc810dd36c deal with the ENOENT problem in statfiles() 2016-02-17 18:16:20 -08:00
Martin A. Brown 46edc205e0 factor out the call to os.stat(); broken links 2016-02-17 11:31:08 -08:00
Martin A. Brown 515595cac9 improve statfiles, deprecate ill-conceived fileset
statfiles now returns a dict() of statinfo and can handle relative paths
2016-02-17 11:18:47 -08:00
Martin A. Brown f72583fca6 improve and generalize statfiles and getfileset
statfiles is the heavy lifter; call os.stat() while walking the directory
simplify getfileset; use the keys returned in the statinfo dict()
2016-02-17 10:17:19 -08:00
Martin A. Brown 6e3362b9aa a bunch of filesystem stat()ing functions 2016-02-16 23:42:22 -08:00
Martin A. Brown 9845e90a39 adding testing for execute and new function getfileset 2016-02-16 19:52:07 -08:00
Martin A. Brown 73305ca97f adding function execute() to shell out 2016-02-15 14:03:56 -08:00
Martin A. Brown f76aa736e7 when calling type(), the word type is already present 2016-02-12 23:00:54 -08:00