diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-08-20 10:19:26 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-08-20 10:57:35 +0300 |
commit | a3795d0dc22a3ee482d7a8aec74ea108225cb3b6 (patch) | |
tree | 7c6cad826a39fa6b6e943d140aaec077a41d1ec6 /rpmbuild.c | |
parent | 66ce5dc19c4662fb4e7870c5a55166435fbad083 (diff) | |
download | librpm-tizen-a3795d0dc22a3ee482d7a8aec74ea108225cb3b6.tar.gz librpm-tizen-a3795d0dc22a3ee482d7a8aec74ea108225cb3b6.tar.bz2 librpm-tizen-a3795d0dc22a3ee482d7a8aec74ea108225cb3b6.zip |
Simplify --root argument checking
- We haven't accepted url's in as root since ages, wipe out the goo
Diffstat (limited to 'rpmbuild.c')
-rw-r--r-- | rpmbuild.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/rpmbuild.c b/rpmbuild.c index 63f1e3307..ece6bb13d 100644 --- a/rpmbuild.c +++ b/rpmbuild.c @@ -187,16 +187,8 @@ int main(int argc, char *argv[]) "installation, erasure, querying, and " "database rebuilds")); - if (rpmcliRootDir) { - switch (urlIsURL(rpmcliRootDir)) { - default: - if (bigMode & MODES_FOR_ROOT) - break; - case URL_IS_UNKNOWN: - if (rpmcliRootDir[0] != '/') - argerror(_("arguments to --root (-r) must begin with a /")); - break; - } + if (rpmcliRootDir && rpmcliRootDir[0] != '/') { + argerror(_("arguments to --root (-r) must begin with a /")); } if (quiet) |