Skip to content

Commit be3d28b

Browse files
committed
Release files for 2.5.0-rc2
* Release files for 2.5.0-rc2 * Code changes from 2.5.0-rc1 --> 2.5.0-rc2 (#2686) * Update docs regarding Ubuntu 24.04
1 parent 0f012b9 commit be3d28b

15 files changed

+1817
-2148
lines changed

configure

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.69 for onedrive v2.5.0-rc1.
3+
# Generated by GNU Autoconf 2.69 for onedrive v2.5.0-rc2.
44
#
55
# Report bugs to <https://github.com/abraunegg/onedrive>.
66
#
@@ -579,8 +579,8 @@ MAKEFLAGS=
579579
# Identity of this package.
580580
PACKAGE_NAME='onedrive'
581581
PACKAGE_TARNAME='onedrive'
582-
PACKAGE_VERSION='v2.5.0-rc1'
583-
PACKAGE_STRING='onedrive v2.5.0-rc1'
582+
PACKAGE_VERSION='v2.5.0-rc2'
583+
PACKAGE_STRING='onedrive v2.5.0-rc2'
584584
PACKAGE_BUGREPORT='https://github.com/abraunegg/onedrive'
585585
PACKAGE_URL=''
586586

@@ -1219,7 +1219,7 @@ if test "$ac_init_help" = "long"; then
12191219
# Omit some internal or obsolete options to make the list less imposing.
12201220
# This message is too long to be a string in the A/UX 3.1 sh.
12211221
cat <<_ACEOF
1222-
\`configure' configures onedrive v2.5.0-rc1 to adapt to many kinds of systems.
1222+
\`configure' configures onedrive v2.5.0-rc2 to adapt to many kinds of systems.
12231223
12241224
Usage: $0 [OPTION]... [VAR=VALUE]...
12251225
@@ -1280,7 +1280,7 @@ fi
12801280

12811281
if test -n "$ac_init_help"; then
12821282
case $ac_init_help in
1283-
short | recursive ) echo "Configuration of onedrive v2.5.0-rc1:";;
1283+
short | recursive ) echo "Configuration of onedrive v2.5.0-rc2:";;
12841284
esac
12851285
cat <<\_ACEOF
12861286
@@ -1393,7 +1393,7 @@ fi
13931393
test -n "$ac_init_help" && exit $ac_status
13941394
if $ac_init_version; then
13951395
cat <<\_ACEOF
1396-
onedrive configure v2.5.0-rc1
1396+
onedrive configure v2.5.0-rc2
13971397
generated by GNU Autoconf 2.69
13981398
13991399
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1410,7 +1410,7 @@ cat >config.log <<_ACEOF
14101410
This file contains any messages produced by compilers while
14111411
running configure, to aid debugging if configure makes a mistake.
14121412
1413-
It was created by onedrive $as_me v2.5.0-rc1, which was
1413+
It was created by onedrive $as_me v2.5.0-rc2, which was
14141414
generated by GNU Autoconf 2.69. Invocation command line was
14151415
14161416
$ $0 $@
@@ -2162,7 +2162,7 @@ fi
21622162
21632163
21642164
2165-
PACKAGE_DATE="March 2024"
2165+
PACKAGE_DATE="April 2024"
21662166
21672167
21682168
@@ -3159,7 +3159,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31593159
# report actual input values of CONFIG_FILES etc. instead of their
31603160
# values after options handling.
31613161
ac_log="
3162-
This file was extended by onedrive $as_me v2.5.0-rc1, which was
3162+
This file was extended by onedrive $as_me v2.5.0-rc2, which was
31633163
generated by GNU Autoconf 2.69. Invocation command line was
31643164
31653165
CONFIG_FILES = $CONFIG_FILES
@@ -3212,7 +3212,7 @@ _ACEOF
32123212
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32133213
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32143214
ac_cs_version="\\
3215-
onedrive config.status v2.5.0-rc1
3215+
onedrive config.status v2.5.0-rc2
32163216
configured by $0, generated by GNU Autoconf 2.69,
32173217
with options \\"\$ac_cs_config\\"
32183218

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dnl - commit the changed files (configure.ac, configure)
99
dnl - tag the release
1010

1111
AC_PREREQ([2.69])
12-
AC_INIT([onedrive],[v2.5.0-rc1], [https://github.com/abraunegg/onedrive], [onedrive])
12+
AC_INIT([onedrive],[v2.5.0-rc2], [https://github.com/abraunegg/onedrive], [onedrive])
1313
AC_CONFIG_SRCDIR([src/main.d])
1414

1515

docs/application-config-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ _**Description:**_ This setting controls the timeout duration, in seconds, for w
206206

207207
_**Value Type:**_ Integer
208208

209-
_**Default Value:**_ 240
209+
_**Default Value:**_ 60
210210

211211
_**Config Example:**_ `data_timeout = "300"`
212212

docs/install.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Only the current release version or greater is supported. Earlier versions are n
3131
| Ubuntu 20.04 | [onedrive](https://packages.ubuntu.com/focal/onedrive) |<a href="https://packages.ubuntu.com/focal/onedrive"><img src="https://repology.org/badge/version-for-repo/ubuntu_20_04/onedrive.svg?header=" alt="Ubuntu 20.04 package" width="46" height="20"></a> ||||| **Note:** Do not install from Ubuntu Universe as the package is obsolete and is not supported<br><br>For a supported application version, it is recommended that for Ubuntu that you install from OpenSuSE Build Service using the Ubuntu Package Install [Instructions](ubuntu-package-install.md) |
3232
| Ubuntu 22.04 | [onedrive](https://packages.ubuntu.com/jammy/onedrive) |<a href="https://packages.ubuntu.com/jammy/onedrive"><img src="https://repology.org/badge/version-for-repo/ubuntu_22_04/onedrive.svg?header=" alt="Ubuntu 22.04 package" width="46" height="20"></a> ||||| **Note:** Do not install from Ubuntu Universe as the package is obsolete and is not supported<br><br>For a supported application version, it is recommended that for Ubuntu that you install from OpenSuSE Build Service using the Ubuntu Package Install [Instructions](ubuntu-package-install.md) |
3333
| Ubuntu 23.04 | [onedrive](https://packages.ubuntu.com/lunar/onedrive) |<a href="https://packages.ubuntu.com/lunar/onedrive"><img src="https://repology.org/badge/version-for-repo/ubuntu_23_04/onedrive.svg?header=" alt="Ubuntu 23.04 package" width="46" height="20"></a> ||||| **Note:** Do not install from Ubuntu Universe as the package is obsolete and is not supported<br><br>For a supported application version, it is recommended that for Ubuntu that you install from OpenSuSE Build Service using the Ubuntu Package Install [Instructions](ubuntu-package-install.md) |
34+
| Ubuntu 24.04 | [onedrive](https://packages.ubuntu.com/noble/onedrive) |<a href="https://packages.ubuntu.com/noble/onedrive"><img src="https://repology.org/badge/version-for-repo/ubuntu_24_04/onedrive.svg?header=" alt="Ubuntu 24.04 package" width="46" height="20"></a> ||||| **Note:** Do not install from Ubuntu Universe as the package is obsolete and is not supported<br><br>For a supported application version, it is recommended that for Ubuntu that you install from OpenSuSE Build Service using the Ubuntu Package Install [Instructions](ubuntu-package-install.md) |
3435
| Void Linux | [onedrive](https://voidlinux.org/packages/?arch=x86_64&q=onedrive) |<a href="https://voidlinux.org/packages/?arch=x86_64&q=onedrive"><img src="https://repology.org/badge/version-for-repo/void_x86_64/onedrive.svg?header=" alt="Void Linux x86_64 package" width="46" height="20"></a>||||| |
3536

3637
## Building from Source - High Level Requirements
@@ -61,7 +62,7 @@ Ubuntu Linux 18.x LTS reached the end of its five-year LTS window on May 31th 20
6162
### Dependencies: Debian 9
6263
Debian 9 reached the end of its five-year support window on June 30th 2022 and is no longer supported.
6364

64-
### Dependencies: Ubuntu 20.x -> Ubuntu 23.x / Debian 10 -> Debian 12 - x86_64
65+
### Dependencies: Ubuntu 20.x -> Ubuntu 24.x / Debian 10 -> Debian 12 - x86_64
6566
These dependencies are also applicable for all Ubuntu based distributions such as:
6667
* Lubuntu
6768
* Linux Mint

docs/ubuntu-package-install.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ If required, review the table below based on your 'lsb_release' information to p
171171
| Ubuntu 22.10 / Kinetic | Use [Ubuntu 22.10](#distribution-ubuntu-2210) instructions below |
172172
| Ubuntu 23.04 / Lunar | Use [Ubuntu 23.04](#distribution-ubuntu-2304) instructions below |
173173
| Ubuntu 23.10 / Mantic | Use [Ubuntu 23.10](#distribution-ubuntu-2310) instructions below |
174+
| Ubuntu 24.04 / Noble | Use [Ubuntu 24.04](#distribution-ubuntu-2404) instructions below |
174175

175176
> [!IMPORTANT]
176177
> If your Linux distribution and release is not in the table above, you have 2 options:
@@ -423,6 +424,32 @@ Run: `sudo apt install --no-install-recommends --no-install-suggests onedrive`
423424
#### Step 5: Read 'Known Issues' with these packages
424425
Read and understand the [known issues](#known-issues-with-installing-from-the-above-packages) with these packages below, taking any action that is needed.
425426

427+
### Distribution: Ubuntu 24.04
428+
The packages support the following platform architectures:
429+
| &nbsp;i686&nbsp; | x86_64 | ARMHF | AARCH64 |
430+
|:----:|:------:|:-----:|:-------:|
431+
|||||
432+
433+
#### Step 1: Add the OpenSuSE Build Service repository release key
434+
Add the OpenSuSE Build Service repository release key using the following command:
435+
```text
436+
wget -qO - https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_24.04/Release.key | gpg --dearmor | sudo tee /usr/share/keyrings/obs-onedrive.gpg > /dev/null
437+
```
438+
439+
#### Step 2: Add the OpenSuSE Build Service repository
440+
Add the OpenSuSE Build Service repository using the following command:
441+
```text
442+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/obs-onedrive.gpg] https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_24.04/ ./" | sudo tee /etc/apt/sources.list.d/onedrive.list
443+
```
444+
445+
#### Step 3: Update your apt package cache
446+
Run: `sudo apt-get update`
447+
448+
#### Step 4: Install 'onedrive'
449+
Run: `sudo apt install --no-install-recommends --no-install-suggests onedrive`
450+
451+
#### Step 5: Read 'Known Issues' with these packages
452+
Read and understand the [known issues](#known-issues-with-installing-from-the-above-packages) with these packages below, taking any action that is needed.
426453

427454
## Known Issues with Installing from the above packages
428455

src/clientSideFiltering.d

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ class ClientSideFiltering {
3030
this.appConfig = appConfig;
3131
}
3232

33+
~this() {
34+
object.destroy(appConfig);
35+
object.destroy(paths);
36+
object.destroy(fileMask);
37+
object.destroy(directoryMask);
38+
}
39+
3340
// Initialise the required items
3441
bool initialise() {
3542
// Log what is being done

src/config.d

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ class ApplicationConfig {
6161
// HTTP Struct items, used for configuring HTTP()
6262
// Curl Timeout Handling
6363
// libcurl dns_cache_timeout timeout
64-
immutable int defaultDnsTimeout = 60;
64+
immutable int defaultDnsTimeout = 60; // in seconds
6565
// Connect timeout for HTTP|HTTPS connections
6666
// Controls CURLOPT_CONNECTTIMEOUT
67-
immutable int defaultConnectTimeout = 10;
68-
// Default data timeout for HTTP
67+
immutable int defaultConnectTimeout = 10; // in seconds
68+
// Default data timeout for HTTP operations
6969
// curl.d has a default of: _defaultDataTimeout = dur!"minutes"(2);
70-
immutable int defaultDataTimeout = 240;
70+
immutable int defaultDataTimeout = 60; // in seconds
7171
// Maximum time any operation is allowed to take
7272
// This includes dns resolution, connecting, data transfer, etc.
7373
// Controls CURLOPT_TIMEOUT
74-
immutable int defaultOperationTimeout = 3600;
74+
immutable int defaultOperationTimeout = 3600; // in seconds
7575
// Specify what IP protocol version should be used when communicating with OneDrive
7676
immutable int defaultIpProtocol = 0; // 0 = IPv4 + IPv6, 1 = IPv4 Only, 2 = IPv6 Only
7777
// Specify how many redirects should be allowed
@@ -682,11 +682,22 @@ class ApplicationConfig {
682682
}
683683

684684
auto file = File(filename, "r");
685-
scope(exit) file.close();
686-
scope(failure) file.close();
687-
685+
string lineBuffer;
686+
687+
scope(exit) {
688+
file.close();
689+
object.destroy(file);
690+
object.destroy(lineBuffer);
691+
}
692+
693+
scope(failure) {
694+
file.close();
695+
object.destroy(file);
696+
object.destroy(lineBuffer);
697+
}
698+
688699
foreach (line; file.byLine()) {
689-
string lineBuffer = stripLeft(line).to!string;
700+
lineBuffer = stripLeft(line).to!string;
690701
if (lineBuffer.empty || lineBuffer[0] == ';' || lineBuffer[0] == '#') continue;
691702
auto c = lineBuffer.matchFirst(configRegex);
692703
if (c.empty) {

0 commit comments

Comments
 (0)