diff options
author | Michele Calgaro <[email protected]> | 2019-04-03 22:56:40 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2019-04-03 22:56:40 +0900 |
commit | 11394aecd1f906fee2ebd2b90412aeba4651fbff (patch) | |
tree | bcf750380e6d9fc7dbe524e16bbe2afde25dcfa0 /ubuntu/maverick/tdelibs/debian/patches/kubuntu_19_debianize_useragent.diff | |
parent | d24bd898174453b586ac90f2ef7a60165fa26fde (diff) | |
download | tde-packaging-11394aecd1f906fee2ebd2b90412aeba4651fbff.tar.gz tde-packaging-11394aecd1f906fee2ebd2b90412aeba4651fbff.zip |
DEB: use _base folder for a distro instead of specific distros (squeeze
and maverick).
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'ubuntu/maverick/tdelibs/debian/patches/kubuntu_19_debianize_useragent.diff')
-rw-r--r-- | ubuntu/maverick/tdelibs/debian/patches/kubuntu_19_debianize_useragent.diff | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/ubuntu/maverick/tdelibs/debian/patches/kubuntu_19_debianize_useragent.diff b/ubuntu/maverick/tdelibs/debian/patches/kubuntu_19_debianize_useragent.diff deleted file mode 100644 index 184591207..000000000 --- a/ubuntu/maverick/tdelibs/debian/patches/kubuntu_19_debianize_useragent.diff +++ /dev/null @@ -1,39 +0,0 @@ ---- a/tdeio/tdeio/tdeprotocolmanager.cpp -+++ b/tdeio/tdeio/tdeprotocolmanager.cpp -@@ -450,14 +450,19 @@ - return d->useragent; - - TQString supp; -+ int debian_append = 0; - struct utsname nam; - if( uname(&nam) >= 0 ) - { - if( modifiers.contains('o') ) - { - supp += TQString("; %1").arg(nam.sysname); -+ debian_append = 1; - if ( modifiers.contains('v') ) -+ { - supp += TQString(" %1").arg(nam.release); -+ debian_append = 2; -+ } - } - if( modifiers.contains('p') ) - { -@@ -485,6 +490,16 @@ - } - d->modifiers = modifiers; - d->useragent = CFG_DEFAULT_UAGENT(supp); -+ -+ if (debian_append == 1) -+ d->useragent.append(" (Debian)"); -+ else if (debian_append == 2) -+ { -+#define STRINGIFY(macro_or_string) STRINGIFY_ARG(macro_or_string) -+#define STRINGIFY_ARG(contents) #contents -+ d->useragent.append(" (Debian package " STRINGIFY(DEBIAN_VERSION) ")"); -+ } -+ - return d->useragent; - } - |