Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add function conda_check_required() | Joseph Hunkeler | 2023-12-10 | 1 | -0/+37 | |
| | | | | * First pass. Needs work. | |||||
* | Set solver to libmamba by default | Joseph Hunkeler | 2023-12-10 | 1 | -0/+1 | |
| | ||||||
* | Set conda to quiet mode when verbosity is not toggled | Joseph Hunkeler | 2023-12-10 | 1 | -1/+7 | |
| | ||||||
* | Use "env" program instead of "printenv" shell built-in to read environment | Joseph Hunkeler | 2023-12-10 | 1 | -1/+1 | |
| | ||||||
* | Add JFrog CLI integration | Joseph Hunkeler | 2023-12-10 | 1 | -0/+1 | |
| | ||||||
* | Add JFrog CLI integration | Joseph Hunkeler | 2023-12-10 | 1 | -0/+394 | |
| | ||||||
* | Read base packages from global config file | Joseph Hunkeler | 2023-11-21 | 1 | -10/+26 | |
| | | | | | | * Add conv_strlist_stackvar macro (globals is not a pointer) * Add "conda_packages" and "pip_package" to global config file * Fix unintended use of "conda build". Use "mambabuild". | |||||
* | Bugfix: Test for a comment first, then act accordingly, instead of testing ↵ | Joseph Hunkeler | 2023-11-21 | 1 | -3/+3 | |
| | | | | only when a variable is being read | |||||
* | Wow. Typo hell. | Joseph Hunkeler | 2023-11-20 | 1 | -2/+2 | |
| | ||||||
* | Emit error information when the temporary directory cannot be used. | Joseph Hunkeler | 2023-11-20 | 1 | -18/+40 | |
| | ||||||
* | Do not produce an error if a path element exists during creation | Joseph Hunkeler | 2023-11-20 | 1 | -0/+5 | |
| | ||||||
* | Use TMPDIR, and fail when script cannot be executed within that filesystem | Joseph Hunkeler | 2023-11-20 | 5 | -6/+64 | |
| | ||||||
* | Improvements | Joseph Hunkeler | 2023-11-20 | 1 | -36/+94 | |
| | | | | | | | | | | | | | * Added getter_required to ensure variables are set by the user * conv_strlist macro strips input and sets its result to NULL if no data was seen * use snprintf to generate environment names. fix incorrect final string output. * Use better working: "Python Packages" instead of "PyPi Packages" * wheel builder will free list(s) on error (unused) * set CONDARC environment variable to ALWAYS point conda to our custom RC file * delivery_defer_packages() should filter correctly now (variable scoping issue) * moved release file text header to global data * delivery_get_spec_header() renamed to delivery_get_release_header() * delivery_rewrite_spec() removes prefix path from delivery artifact | |||||
* | Fix type for counter. ssize_t was expected, but we were using size_t instead | Joseph Hunkeler | 2023-11-20 | 1 | -3/+3 | |
| | | | | * Also removed redundant __environ symbol | |||||
* | Fixes: | Joseph Hunkeler | 2023-11-20 | 1 | -47/+53 | |
| | | | | | | | | | * ini_section_record() returns status now * Reading long data variables (multi-line arrays) behaves consistently Refactor: * ini_data_record() is now ini_data_append() | |||||
* | Add shell_output() and use xmkstemp() | Joseph Hunkeler | 2023-11-20 | 1 | -8/+36 | |
| | ||||||
* | Fix warnings and add xmkstemp | Joseph Hunkeler | 2023-11-20 | 1 | -6/+21 | |
| | | | | | | * Reduce stack usage for status variable in msg() * Bugfix: write OMC_COLOR_RESET to the requested stream instead of stdout * Add helper function xmkstemp to avoid clutter when using disposable files | |||||
* | Remove unused variables | Joseph Hunkeler | 2023-11-20 | 1 | -4/+0 | |
| | ||||||
* | Prevent lstrip() will remove leading whitespace and new lines, but NOT if ↵ | Joseph Hunkeler | 2023-11-20 | 1 | -3/+8 | |
| | | | | | | the line consists of one whitepace or new line character * Document strsort() | |||||
* | Reduce stack usage for archsuffix variable | Joseph Hunkeler | 2023-11-20 | 1 | -3/+3 | |
| | | | | * Add spaces to banner | |||||
* | Replace mkdir() calls with mkdirs() (from copy.h) | Joseph Hunkeler | 2023-11-20 | 1 | -10/+7 | |
| | ||||||
* | Add copy.c | Joseph Hunkeler | 2023-11-20 | 1 | -0/+1 | |
| | ||||||
* | Use globals | Joseph Hunkeler | 2023-11-20 | 2 | -0/+13 | |
| | | | | | | * continue_on_error set by omc config * always_update_base_environment set by omc config * Passing OMC_MSG_RESTRICT flag to msg() will print only in verbose mode | |||||
* | Implements slightly improved error handling | Joseph Hunkeler | 2023-11-20 | 5 | -84/+209 | |
| | | | | | | | * Return status from conda_ and delivery_ functions * Caller prints meaningful error, and handles it * Enable warnings during compilation * Squelch format-truncation warning -- those strings are extremely unlikely to overflow (famous last words) | |||||
* | Implements getopt argument parsing | Joseph Hunkeler | 2023-11-20 | 1 | -3/+132 | |
| | | | | | | * Initial SPM_GLOBAL structure * Allow override of target python version * Add usage statement generator | |||||
* | Add copy.c, copy.h | Joseph Hunkeler | 2023-11-20 | 1 | -0/+191 | |
| | | | | | | * copytree() * mkdirs() * copy2() | |||||
* | Rebranding | Joseph Hunkeler | 2023-11-20 | 1 | -1/+1 | |
| | ||||||
* | Replaces BUFSIZ with OMC_BUFSIZ | Joseph Hunkeler | 2023-11-20 | 6 | -15/+15 | |
| | ||||||
* | Rebrand for the last time | Joseph Hunkeler | 2023-11-20 | 4 | -6/+9 | |
| | | | | | * Shorten OHMYCAL to OMC * Rename ohmycal.h to omc.h | |||||
* | Rebrand SPM to OHMYCAL | Joseph Hunkeler | 2023-11-03 | 1 | -4/+4 | |
| | ||||||
* | Add comments | Joseph Hunkeler | 2023-11-03 | 1 | -105/+27 | |
| | ||||||
* | Remove debug shell call | Joseph Hunkeler | 2023-10-31 | 1 | -8/+2 | |
| | ||||||
* | Add placeholders for conda.tool[_build_]version | Joseph Hunkeler | 2023-10-31 | 1 | -0/+4 | |
| | ||||||
* | Guard ini_free() in case cfg is not in use | Joseph Hunkeler | 2023-10-31 | 1 | -1/+4 | |
| | | | | * Free delivery delivery context | |||||
* | Remove or disable dead code | Joseph Hunkeler | 2023-10-31 | 1 | -5/+1 | |
| | ||||||
* | Use new info.release_name member | Joseph Hunkeler | 2023-10-31 | 1 | -0/+3 | |
| | ||||||
* | Removes code that has moved to various source files | Joseph Hunkeler | 2023-10-31 | 1 | -142/+0 | |
| | ||||||
* | Consolidate conda_setup_headless() from main.c | Joseph Hunkeler | 2023-10-31 | 1 | -1/+15 | |
| | ||||||
* | Parse output of "printenv -0" to preserve environment correctly | Joseph Hunkeler | 2023-10-31 | 1 | -10/+30 | |
| | | | | | | * Use fgetc in place of fgets * Split key/value on '=' * Issue warnings on invalid key/value | |||||
* | Consolidate functions and defines from main.c | Joseph Hunkeler | 2023-10-31 | 1 | -5/+126 | |
| | ||||||
* | Add delivery get_spec_header() | Joseph Hunkeler | 2023-10-31 | 1 | -0/+15 | |
| | ||||||
* | Add delivery_free function | Joseph Hunkeler | 2023-10-31 | 1 | -0/+48 | |
| | | | | * Add guard_free_ macros | |||||
* | Fixes memory leak in conv_ macros | Joseph Hunkeler | 2023-10-31 | 1 | -3/+4 | |
| | ||||||
* | Consume up to one '=', instead of splitting on all occurrences | Joseph Hunkeler | 2023-10-31 | 1 | -4/+3 | |
| | ||||||
* | Fixes maximum number of tokens parsed by split() function | Joseph Hunkeler | 2023-10-31 | 1 | -9/+12 | |
| | | | | * Resets the string pointer before returning to avoid freeing the wrong address in memory | |||||
* | Fixes potential double-free condition | Joseph Hunkeler | 2023-10-31 | 1 | -2/+7 | |
| | | | | | * Only free pStrList->data[i] and pStrList->data if they are not NULL * Free tokenized string after append | |||||
* | Close dangling file descriptor | Joseph Hunkeler | 2023-10-31 | 1 | -1/+8 | |
| | | | | * Only remove temporary script file if it exists | |||||
* | msg() function is now type void | Joseph Hunkeler | 2023-10-31 | 1 | -2/+9 | |
| | | | | * Add debug_shell() function to interactively examine the runtime environment | |||||
* | Only truncate value when length is greater than zero | Joseph Hunkeler | 2023-10-31 | 1 | -67/+6 | |
| | | | | * Remove unused code/comments | |||||
* | Initial commit | Joseph Hunkeler | 2023-10-26 | 14 | -0/+4352 | |