Compare commits

...

4 Commits
v1.0.5 ... 1.0

Author SHA1 Message Date
Michael Shigorin
7bcbcdca83 gear-store-tags 2015-09-08 00:08:04 +03:00
Michael Shigorin
6e12923402 1.0.6-alt0.M70T.1
- mktmpdir: fixed sort key
2015-09-08 00:07:43 +03:00
Michael Shigorin
df03a56a4e mktmpdir: fixed sort key
The sort key field value has been off-by-one apparently,
"6" corresponds to "capacity" field of df -PT output
while the "available" one was meant:

Filesystem     Type  1024-blocks     Used Available Capacity Mounted on
/dev/sda9      ext4     15350768 12799972   1747980      88% /
tmpfs          tmpfs     1967204    27396   1939808       2% /tmp

1              2               3        4         5       6

This lapse has been five years old, looks like it's only
been masked by lower available space limit *and* filesystem
ordering by type so far.  It didn't hit me even now, rather
inspected the code while implementing volumes-profile-starterkit...
2015-09-08 00:07:43 +03:00
Michael Shigorin
305e7e8fde gear-store-tags 2015-02-02 23:45:15 +03:00
5 changed files with 12 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
Name: mkimage-profiles
Version: 1.0.5
Version: 1.0.6
Release: alt0.M70T.1
Summary: ALT Linux based distribution metaprofile
@@ -78,6 +78,9 @@ cp -a * %buildroot%mpdir
%doc %docs/*
%changelog
* Mon Sep 07 2015 Michael Shigorin <mike@altlinux.org> 1.0.6-alt0.M70T.1
- mktmpdir: fixed sort key
* Mon Feb 02 2015 Michael Shigorin <mike@altlinux.org> 1.0.5-alt0.M70T.1
- backported pkg/lists fix (and the commit before it)

View File

@@ -1,6 +0,0 @@
object d59601f7ad0c025a93ecf7d32f1e82dee40003fa
type commit
tag v1.0.4
tagger Michael Shigorin <mike@altlinux.org> 1395074306 +0400
r8168 go home

View File

@@ -0,0 +1,6 @@
object 6e1292340242d94e4402e70c0235f546adfe0598
type commit
tag v1.0.6
tagger Michael Shigorin <mike@altlinux.org> 1441660082 +0300
mktmpdir fixup

View File

@@ -1 +1 @@
20e406ed3fc12686b58273df14d4714454c3395a v1.0.4
b3c51a2aab25e4d159009fabcde9945ef8bc4ca5 v1.0.6

View File

@@ -45,7 +45,7 @@ choose_tmpdir() {
echo -n "$i "
df -PT "$i" | tail -1
done \
| sort -unk6 \
| sort -unk5 \
| while read dir dev fstype size used free percent mnt; do
check_options "$dev" "$mnt" || continue
[ "$free" -gt "$MINSIZE" ] || continue