rip pkg-warner lmao

i18n
Matt C 2 years ago committed by GitHub
parent 61a9a344f2
commit 30744d1d77

@ -7,39 +7,6 @@ description = "A fast and efficient AUR helper"
license-file = "LICENSE.md"
default-run = "ame"
[features]
pkg-warner = []
[[bin]]
name = "apt"
path = "src/bin/apt.rs"
required-features = ["pkg-warner"]
[[bin]]
name = "apt-get"
path = "src/bin/apt-get.rs"
required-features = ["pkg-warner"]
[[bin]]
name = "dnf"
path = "src/bin/dnf.rs"
required-features = ["pkg-warner"]
[[bin]]
name = "eopkg"
path = "src/bin/eopkg.rs"
required-features = ["pkg-warner"]
[[bin]]
name = "yum"
path = "src/bin/yum.rs"
required-features = ["pkg-warner"]
[[bin]]
name = "zypper"
path = "src/bin/zypper.rs"
required-features = ["pkg-warner"]
[[bin]]
name = "ame"
path = "src/main.rs"

@ -4,7 +4,7 @@
pkgname=amethyst
pkgver=3.3.0
pkgrel=3
pkgrel=4
pkgdesc="A fast and efficient AUR helper"
arch=('x86_64')
url="https://github.com/crystal-linux/amethyst"

@ -0,0 +1,7 @@
post_upgrade() {
if [[ ! -f /var/db/pkg_warner ]]; then
for n in apt apt-get dnf eopkg yum zypper; do
[[ -f /usr/bin/$n ]] && rm /usr/bin/$n
done
fi
}

@ -1,14 +0,0 @@
use std::env;
fn main() {
let arg = &env::args().collect::<Vec<String>>()[0];
println!(
"Sorry for the bother, we don't use \x1b[2;22;35m{}\x1b[0m on Crystal, we use \x1b[2;22;35mame\x1b[0m! Please use that instead!",
arg.split('/')
.collect::<Vec<&str>>()
.last()
.unwrap()
);
std::process::exit(0);
}

@ -1,14 +0,0 @@
use std::env;
fn main() {
let arg = &env::args().collect::<Vec<String>>()[0];
println!(
"Sorry for the bother, we don't use \x1b[2;22;35m{}\x1b[0m on Crystal, we use \x1b[2;22;35mame\x1b[0m! Please use that instead!",
arg.split('/')
.collect::<Vec<&str>>()
.last()
.unwrap()
);
std::process::exit(0);
}

@ -1,14 +0,0 @@
use std::env;
fn main() {
let arg = &env::args().collect::<Vec<String>>()[0];
println!(
"Sorry for the bother, we don't use \x1b[2;22;35m{}\x1b[0m on Crystal, we use \x1b[2;22;35mame\x1b[0m! Please use that instead!",
arg.split('/')
.collect::<Vec<&str>>()
.last()
.unwrap()
);
std::process::exit(0);
}

@ -1,14 +0,0 @@
use std::env;
fn main() {
let arg = &env::args().collect::<Vec<String>>()[0];
println!(
"Sorry for the bother, we don't use \x1b[2;22;35m{}\x1b[0m on Crystal, we use \x1b[2;22;35mame\x1b[0m! Please use that instead!",
arg.split('/')
.collect::<Vec<&str>>()
.last()
.unwrap()
);
std::process::exit(0);
}

@ -1,14 +0,0 @@
use std::env;
fn main() {
let arg = &env::args().collect::<Vec<String>>()[0];
println!(
"Sorry for the bother, we don't use \x1b[2;22;35m{}\x1b[0m on Crystal, we use \x1b[2;22;35mame\x1b[0m! Please use that instead!",
arg.split('/')
.collect::<Vec<&str>>()
.last()
.unwrap()
);
std::process::exit(0);
}

@ -1,14 +0,0 @@
use std::env;
fn main() {
let arg = &env::args().collect::<Vec<String>>()[0];
println!(
"Sorry for the bother, we don't use \x1b[2;22;35m{}\x1b[0m on Crystal, we use \x1b[2;22;35mame\x1b[0m! Please use that instead!",
arg.split('/')
.collect::<Vec<&str>>()
.last()
.unwrap()
);
std::process::exit(0);
}
Loading…
Cancel
Save