]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/pakfire/pakfire
Pakfire: Add new command line argument "status"
[ipfire-2.x.git] / src / pakfire / pakfire
index 202c1e5a142f83200f89b2d3c6544f8a16d57d3e..c69a8d3ad6dcf056f83518c4910463938c01f5cd 100644 (file)
@@ -24,6 +24,9 @@
        delete @ENV{qw(IFS CDPATH ENV BASH_ENV PATH)};
        $< = $>;
 
+       # Store keys here
+       $ENV{"GNUPGHOME"} = "/opt/pakfire/etc/.gnupg";
+
        require "/opt/pakfire/lib/functions.pl";
        
        my $interactive = 1;
        
        } elsif ("$ARGV[0]" eq "update") {
                &Pakfire::makeuuid();
-               &Pakfire::senduuid();
                &Pakfire::getmirrors("$force");
                &Pakfire::dbgetlist("$force");
                &Pakfire::getcoredb("$force");
                } elsif ("$ARGV[1]" eq "upgrades") {
                        system("rm -f /etc/fcron.daily/pakfire-upgrade");
                }
+       } elsif ("$ARGV[0]" eq "status") {
+               &Pakfire::status;
        } else {
                &Pakfire::usage;
        }