Skip to content

Commit

Permalink
Merge pull request #873 from openSUSE/dev_improvements
Browse files Browse the repository at this point in the history
Dev improvements
  • Loading branch information
jreidinger authored Nov 16, 2023
2 parents 3f62e27 + 0c8cbce commit 908e0e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .yupdate.pre
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ function load_npm_cache() {

# memory check, with not enough memory the system freezes
RAM=$(grep "MemTotal:" /proc/meminfo | sed -e "s/MemTotal:[[:space:]]*\([0-9]\+\) kB/\\1/")
# less than ~4GB RAM
if [ "$RAM" -lt 4000000 ] && [ "$SKIP_MEM_CHECK" != "1" ]; then
# less than ~2GB RAM
if [ "$RAM" -lt 2000000 ] && [ "$SKIP_MEM_CHECK" != "1" ]; then
echo >&2
echo "ERROR: The system has too low memory ($RAM kB) for applying the update." >&2
echo "The system could completely freeze and become unresponsive." >&2
Expand Down
6 changes: 5 additions & 1 deletion doc/yupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ end users or testers.
## Patching from GitHub

```
yupdate patch yast/agama master
yupdate patch openSUSE/agama master
```

You can replace the `master` branch with any branch containing a fix or a new feature.
Expand All @@ -38,6 +38,10 @@ a different port number.

You can modify the update process with these environment variables:

- `DEBUG=1` - to find more about what is going behind process. If it fails in
rake install see VERBOSE below.
- `VERBOSE` - makes visible all commands and its output when doing rake
install. Useful to debug if yupdate failed.
- `NPM_CACHE=1` - The installed NPM packages will be saved to a local cache
and will be reused in the next run. This can speed up the patching process
if you need to patch the installer several times. On the other hand this
Expand Down

0 comments on commit 908e0e7

Please sign in to comment.