Skip to content

Commit

Permalink
Clean up init setters.
Browse files Browse the repository at this point in the history
When attempting to expand on legacy style image name, it outputs Done
on the next line.  Remove this Done line for pretty factor.
Cleanup the fixed_size_partitions file on upload so if it's blank it gets
1 instead of :1
  • Loading branch information
mastacontrola committed Jan 5, 2017
1 parent daf3d28 commit 7289b88
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/web/lib/fog/system.class.php
Expand Up @@ -53,7 +53,7 @@ private static function _versionCompare()
public function __construct()
{
self::_versionCompare();
define('FOG_VERSION', '7');
define('FOG_VERSION', '8');
define('FOG_SCHEMA', 245);
define('FOG_BCACHE_VER', 111);
define('FOG_SVN_REVISION', 6052);
Expand Down
2 changes: 1 addition & 1 deletion packages/web/management/languages/messages.pot
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-04 16:19-0500\n"
"POT-Creation-Date: 2017-01-04 19:53-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
1 change: 0 additions & 1 deletion src/buildroot/package/fog/scripts/bin/fog.download
Expand Up @@ -95,7 +95,6 @@ preparePartitions() {
case $do_fill in
1)
fillDiskWithPartitions "$hd" "$imagePath" 1
echo "Done"
;;
*)
startsector="2048s"
Expand Down
4 changes: 3 additions & 1 deletion src/buildroot/package/fog/scripts/bin/fog.upload
Expand Up @@ -70,7 +70,9 @@ beginUpload() {
case $osid in
[4-7]|9|50|51)
echo " * Setting up any additional fixed parts"
[[ $((ntfscnt + extfscnt)) -gt 0 && $part_number -gt 1 ]] && fixed_size_partitions="$fixed_size_partitions:1"
if [[ $((ntfscnt + extfscnt)) -gt 0 && $part_number -gt 1 ]]; then
[[ -n $fixed_size_partitions ]] && fixed_size_partitions="$fixed_size_partitions:1" || fixed_size_partitions="1"
fi
part_number=0
for part in $parts; do
getPartitionNumber "$part"
Expand Down

0 comments on commit 7289b88

Please sign in to comment.